🎨 优化微信登录流程&新增手机和微信绑定接口
This commit is contained in:
@@ -7,7 +7,7 @@ type SendCodeReq struct {
|
||||
}
|
||||
|
||||
type CodeLoginReq struct {
|
||||
Phone string `json:"phone" form:"phone" vd:"@:len($)>0; msg:'请输入手机号码'"`
|
||||
Phone string `json:"phone" form:"phone"`
|
||||
Code string `json:"code" form:"code" vd:"@:len($)>0; msg:'请输入短信验证码'"`
|
||||
}
|
||||
|
||||
@@ -35,8 +35,10 @@ type BindWechatReq struct {
|
||||
}
|
||||
|
||||
type BindPhoneReq struct {
|
||||
Id int `json:"id" form:"id" vd:"@:len($)>0; msg:'用户ID不能为空'"`
|
||||
Phone string `json:"phone" form:"phone" vd:"@:len($)>0; msg:'手机号码不能为空'"`
|
||||
Id int `json:"id" form:"id" vd:"@:len($)>0; msg:'用户ID不能为空'"`
|
||||
Phone string `json:"phone" form:"phone" vd:"@:len($)>0; msg:'手机号码不能为空'"`
|
||||
Code string `json:"code" form:"code" vd:"@:len($)>0; msg:'验证码不能为空'"`
|
||||
PassWord string `json:"password" form:"password" vd:"@:len($)>0; msg:'密码不能为空'"`
|
||||
}
|
||||
|
||||
type GetUserListReq struct {
|
||||
|
Reference in New Issue
Block a user