作者 陈志颖

合并分支 'dev' 到 'test'

fix:修复密码验证grantType



查看合并请求 !68
... ... @@ -15,11 +15,12 @@ const RefreshTokenExipre = 3600 * 24 * 30 * 1 //刷新token 一个月过期
//const RefreshTokenExipre = 60 //刷新token
/*Login */
// TODO 判断grantTypePwd校验
type LoginRequest struct {
Phone string `json:"phone" valid:"Required;"`
Password string `json:"password"`
Captcha string `json:"captcha"`
GrantType string `json:"grantType"` // 登录类型 1:密码 2:验证码
GrantType string `json:"grantType" valid:"Required;"` // 登录类型 1:密码 2:验证码
ClientId string `json:"clientId"`
Credentials string `json:"credentials"` //凭证登录
}
... ...