1、增加注册
This commit is contained in:
@ -5,6 +5,12 @@ var StatusCodeZh = map[int]string{
|
||||
AccountExisted: "账号已存在",
|
||||
AccountOrPasswordError: "账号或密码错误",
|
||||
PassWordNotMatch: "密码不一致",
|
||||
ServerError: "服务端错误,请联系管理员",
|
||||
EmailEmpty: "邮箱不能为空",
|
||||
EmailFormatError: "邮箱格式不正确",
|
||||
PasswordEmpty: "密码不能为空",
|
||||
ConfirmPasswordEmpty: "确认密码不能为空",
|
||||
VerifyCodeError: "验证码错误",
|
||||
}
|
||||
|
||||
var StatusCodeEn = map[int]string{
|
||||
@ -12,6 +18,12 @@ var StatusCodeEn = map[int]string{
|
||||
AccountExisted: "account already existed",
|
||||
AccountOrPasswordError: "account or password error",
|
||||
PassWordNotMatch: "password not match",
|
||||
ServerError: "server error, please contact admin",
|
||||
EmailEmpty: "email can not be empty",
|
||||
EmailFormatError: "email format error",
|
||||
PasswordEmpty: "password can not be empty",
|
||||
ConfirmPasswordEmpty: "confirm password can not be empty",
|
||||
VerifyCodeError: "verify code error",
|
||||
}
|
||||
|
||||
func GetMsg(code int, lang string) string {
|
||||
@ -33,4 +45,18 @@ const (
|
||||
AccountOrPasswordError = 10003
|
||||
//密码不一致
|
||||
PassWordNotMatch = 10004
|
||||
|
||||
//
|
||||
ServerError = 500
|
||||
|
||||
//邮箱不能为空
|
||||
EmailEmpty = 10005
|
||||
//邮箱格式不正确
|
||||
EmailFormatError = 10006
|
||||
//密码不能为空
|
||||
PasswordEmpty = 10007
|
||||
//确认密码不能为空
|
||||
ConfirmPasswordEmpty = 10008
|
||||
//验证码错误
|
||||
VerifyCodeError = 10009
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user