business_admin_user_auth.go 1.2 KB
package reply

type BusinessAdminUserAuth struct {
	BaseReply
	Data struct {
		UserAuth bool `json:"userAuth"`
	} `json:"data"`
}

func (businessAdminUserAuth *BusinessAdminUserAuth) Message() string {
	if businessAdminUserAuth.Code == 10001 {
		return "用户不存在"
	}
	if businessAdminUserAuth.Code == 10002 {
		return "登录凭证已过期,请重新登陆"
	}
	if businessAdminUserAuth.Code == 10003 {
		return "验证码不能为空"
	}
	if businessAdminUserAuth.Code == 10004 {
		return "登录凭证不能为空"
	}
	if businessAdminUserAuth.Code == 10005 {
		return "密码不能为空"
	}
	if businessAdminUserAuth.Code == 10006 {
		return "当前账号已被禁用"
	}
	if businessAdminUserAuth.Code == 10007 {
		return "该企业已被禁用,无法正常访问!重新选择其他企业进入,或退出登录。"
	}
	if businessAdminUserAuth.Code == 10008 {
		return "抱歉,企业管理员未帮您开通权限。如需访问,请联系企业管理员"
	}
	if businessAdminUserAuth.Code == 10009 {
		return "密码错误"
	}
	if businessAdminUserAuth.Code == 10010 {
		return "验证码错误"
	}
	return "你没有权限进入系统,请联系管理员"
}