Documentation ¶
Index ¶
Constants ¶
View Source
const ( SUCCESS = 200 ERROR = 500 InvalidParams = 400 //成员错误 ErrorExistUser = 10002 ErrorNotExistUser = 10003 ErrorFailEncryption = 10006 ErrorNotCompare = 10007 HaveSignUp = 20001 ErrorActivityTimeout = 20002 ErrorAuthCheckTokenFail = 30001 //token 错误 ErrorAuthCheckTokenTimeout = 30002 //token 过期 ErrorAuthToken = 30003 ErrorAuth = 30004 ErrorAuthNotFound = 30005 ErrorDatabase = 40001 )
Variables ¶
View Source
var MsgFlags = map[int]string{
SUCCESS: "ok",
ERROR: "fail",
InvalidParams: "请求参数错误",
HaveSignUp: "已经报名了",
ErrorActivityTimeout: "活动过期了",
ErrorAuthCheckTokenFail: "Token鉴权失败",
ErrorAuthCheckTokenTimeout: "Token已超时",
ErrorAuthToken: "Token生成失败",
ErrorAuth: "Token错误",
ErrorNotCompare: "不匹配",
ErrorDatabase: "数据库操作出错,请重试",
ErrorAuthNotFound: "Token不能为空",
}
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.