2 Star 0 Fork 1

taotechip/modules

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
response_code.go 836 Bytes
一键复制 编辑 原始数据 按行查看 历史
kyugao 提交于 2025-02-12 01:14 +08:00 . 常用组件的封装
package response
type ResponseCode struct {
Code string
Info string
}
var SUCCESS = &ResponseCode{Code: "RC00000", Info: "SUCCESS"}
var TOKEN_EXPIRE_ERROR = &ResponseCode{Code: "RC50000", Info: "TokenExpireOrInvalid"}
var MGMT_TOKEN_EXPIRE_ERROR = &ResponseCode{Code: "RC50099", Info: "MgmtTokenExpireOrInvalid: %s"}
var MGMT_TOKEN_DISABLE_ERROR = &ResponseCode{Code: "RC50090", Info: "MgmtTokenDisabled"}
var GENERAL_ERROR = &ResponseCode{Code: "RC60000", Info: "FAILURE"}
var PARAM_ERROR = &ResponseCode{Code: "RC70000", Info: "ParamError"}
var DB_ERROR = &ResponseCode{Code: "RC80000", Info: "DBError"}
var DB_NOT_FOUND = &ResponseCode{Code: "RC80404", Info: "DBError: record not found"}
var CacheError = &ResponseCode{Code: "RC81001", Info: "缓存操作失败"}
var SYS_ERROR = &ResponseCode{Code: "RC90000", Info: "SysError"}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/taotechip/modules.git
git@gitee.com:taotechip/modules.git
taotechip
modules
modules
v1.10.5

搜索帮助