17 lines
622 B
Go
17 lines
622 B
Go
package requests
|
||
|
||
type LoginRequest struct {
|
||
Login // 登录
|
||
}
|
||
|
||
// Login 登录
|
||
type Login struct {
|
||
Mobile string `json:"mobile" form:"mobile" label:"手机号"`
|
||
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"`
|
||
Nickname string `json:"nickname" form:"nickname" label:"用户昵称"`
|
||
HeadImgUrl string `json:"headimgurl" form:"headimgurl" label:"头像"`
|
||
UnionId string `json:"unionid" form:"unionid" label:"unionid"`
|
||
}
|