Documentation ¶
Index ¶
Constants ¶
View Source
const ParamError = 1000 // 参数参数错误
View Source
const UnKnowError = 9999 // 未知错误
Variables ¶
View Source
var ErrorCodeMap = map[string]int{
"verifyCodeError": 1001, "userNotFound": 1002, "passwordError": 1003, "phoneLimit": 1004, "unauthorized": 1005,
}
View Source
var ErrorMsgMap = map[int]string{
1001: "验证码错误", 1002: "用户没找到", 1003: "用户名或密码错误", 1004: "被限制的手机号", 1005: "未经授权的",
}
View Source
var ErrorMsgMapEn = map[int]string{
1001: "verify code error", 1002: "user not found", 1003: "user or password error", 1004: "phone limit", 1005: "unauthorized",
}
Functions ¶
func ErrorWarper ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.