message.go
949 字节
package protocol
import "gitlab.fjmaimaimai.com/mmm-go/gocomm/pkg/mybeego"
func InitMessageCode(){
messages := []struct {
Code int
Msg string
}{
{113,"签名验证失败"},
{1009,"验证码已超时,登录失败"},
{1011,"短信验证码次数超过限制,请稍后重试"},
{1012,"验证码错误"},
{2001,"请输入正确的手机号码"},
{2002,"后台未配置账号信息,请联系管理员配置"},
{2009,"上传的文件流为空"},
{2020,"帐号不存在,请联系管理员"},
{2021,"登录失败,手机号或密码错误"},
{2025,"短信验证码验证失败"},
{2026,"两次输入的密码不一致"},
{4139,"authCode无效或过期"},
{4140,"refreshToken过期,需要重新登录授权"},
{4141,"accessToken过期或无效,需要进行重新获取令牌"},
{4142,"Uuid已存在,请求失败"},
}
for i:=range messages{
mybeego.SetMessage(messages[i].Code,messages[i].Msg)
}
}