package schema // LoginParam 登录参数 type LoginParam struct { UserName string `json:"user_name" binding:"required"` // 用户名 Password string `json:"password" binding:"required"` // 密码(md5加密) CaptchaID string `json:"captcha_id" binding:"required"` // 验证码ID CaptchaCode string `json:"captcha_code" binding:"required"` // 验证码 } // LoginByPhoneParam 手机号登录参数 type LoginByPhoneParam struct { Phone string `json:"phone" binding:"required"` // 手机号 Password string `json:"password" binding:"required"` // 密码(md5加密) } // SmsLoginParam 短信登录参数 type SmsLoginParam struct { Phone string `json:"phone" v:"phone"` // 电话 Code string `json:"code" v:"required"` // 验证码 BusinessType int `json:"business_type"` // 业务类型 } // UpdatePassParams 修改密码参数 type UpdatePassParams struct { Phone string `json:"phone" v:"phone"` // 电话 Code string `json:"code" v:"required"` // 验证码 BusinessType int `json:"business_type"` // 业务类型 NewPassword string `json:"new_password" v:"required"` //新密码(md5加密) } // UserLoginInfo 用户登录信息 type UserLoginInfo struct { UserName string `json:"user_name"` // 用户名 RealName string `json:"real_name"` // 真实姓名 Photo string `json:"photo"` // 头像 } // UpdatePasswordParam 更新密码请求参数 type UpdatePasswordParam struct { OldPassword string `json:"old_password" binding:"required"` // 旧密码(md5加密) NewPassword string `json:"new_password" binding:"required"` //新密码(md5加密) } // LoginCaptcha 登录验证码 type LoginCaptcha struct { CaptchaID string `json:"captcha_id"` // 验证码ID } // LoginTokenInfo 登录令牌信息 type LoginTokenInfo struct { AccessToken string `json:"access_token"` // 访问令牌 TokenType string `json:"token_type"` // 令牌类型 ExpiresAt int64 `json:"expires_at"` // 令牌到期时间 AppFirstLogin bool `json:"app_first_login"` // app是否首次登录 } // SetPasswordParam struct { 设置密码请求参数 type SetPasswordParam struct { Password string `json:"password" binding:"required"` //密码(md5加密) }