tydata-server/common/xerr/errCode.go

24 lines
702 B
Go
Raw Normal View History

2025-01-10 00:09:25 +08:00
package xerr
// 成功返回
const OK uint32 = 200
/**(前3位代表业务,后三位代表具体功能)**/
// 全局错误码
const SERVER_COMMON_ERROR uint32 = 100001
const REUQEST_PARAM_ERROR uint32 = 100002
const TOKEN_EXPIRE_ERROR uint32 = 100003
const TOKEN_GENERATE_ERROR uint32 = 100004
const DB_ERROR uint32 = 100005
const DB_UPDATE_AFFECTED_ZERO_ERROR uint32 = 100006
const PARAM_VERIFICATION_ERROR uint32 = 100007
const CUSTOM_ERROR uint32 = 100008
2025-04-08 15:17:09 +08:00
const USER_NOT_FOUND uint32 = 100009
2025-06-18 16:31:32 +08:00
const USER_NEED_BIND_MOBILE uint32 = 100010
2025-04-23 02:03:31 +08:00
2025-01-10 00:09:25 +08:00
const LOGIN_FAILED uint32 = 200001
const LOGIC_QUERY_WAIT uint32 = 200002
const LOGIC_QUERY_ERROR uint32 = 200003
2025-04-08 12:49:19 +08:00
const LOGIC_QUERY_NOT_FOUND uint32 = 200004