Documentation
¶
Index ¶
Constants ¶
View Source
const ( SUCCESS = 200 ERROR = 500 ErrParams = 10001 ErrToken = 10002 //token 错误 ErrDatabase = 10003 ErrRedis = 10004 ErrEtcd = 10005 ErrMarshal = 10006 ErrUnmarshal = 10007 ErrAdmin = 20001 ErrGateway = 30001 )
Variables ¶
View Source
var MsgFlags = map[int]string{ SUCCESS: "成功", ERROR: "失败", ErrParams: "参数请求错误", ErrToken: "Token错误", ErrDatabase: "DB执行错误", ErrRedis: "Redis执行错误", ErrEtcd: "Etcd执行错误", ErrMarshal: "序列化错误", ErrUnmarshal: "反序列化错误", ErrAdmin: "Admin模块错误", ErrGateway: "Gateway模块错误", }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.