修改登录时手机号参数为必填
This commit is contained in:
parent
1e3bc3b3dc
commit
4f335a8b5e
@ -6,7 +6,7 @@ type LoginRequest struct {
|
||||
|
||||
// Login 登录
|
||||
type Login struct {
|
||||
Mobile string `json:"mobile" form:"mobile" label:"手机号" validate:"omitempty,Mobile"`
|
||||
Mobile string `json:"mobile" form:"mobile" label:"手机号" validate:"required,Mobile"`
|
||||
Code string `json:"code" form:"code" label:"验证码"`
|
||||
Source int `json:"source" form:"source" label:"来源" validate:"required"` // (1:app 2:公众号)
|
||||
OpenId string `json:"openid" form:"openid" label:"openid"`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user