2026-06-26 20b96473f2520590a0dca6b775b81e3ea06a77a0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package cn.iocoder.yudao.module.iot.gateway.enums;
 
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
 
/**
 * iot gateway 错误码枚举类
 * <p>
 * iot 系统,使用 1-051-000-000 段
 */
public interface ErrorCodeConstants {
 
    // ========== 设备认证 1-050-001-000 ============
    ErrorCode DEVICE_AUTH_FAIL = new ErrorCode(1_051_001_000, "设备鉴权失败"); // 对应阿里云 20000
    ErrorCode DEVICE_TOKEN_EXPIRED = new ErrorCode(1_051_001_002, "token 失效。需重新调用 auth 进行鉴权,获取token"); // 对应阿里云 20001
 
    // ========== 设备信息 1-050-002-000 ============
    ErrorCode DEVICE_NOT_EXISTS = new ErrorCode(1_051_002_001, "设备({}/{}) 不存在");
 
}