sync: 对齐小程序 v1.0.2 生产代码并脱敏
This commit is contained in:
@@ -5,7 +5,7 @@ type AppPhoneRegisterParam struct {
|
||||
Phone string `json:"phone" v:"required|phone#手机号不能为空|手机号格式不正确" dc:"手机号"`
|
||||
Password string `json:"password" v:"required|length:6,32#密码不能为空|密码长度应为6到32位" dc:"密码"`
|
||||
NickName string `json:"nickName" dc:"昵称"`
|
||||
SmsCode string `json:"smsCode" dc:"短信验证码,当前注册未接入短信时可为空"`
|
||||
SmsCode string `json:"smsCode" v:"required#短信验证码不能为空" dc:"短信验证码"`
|
||||
}
|
||||
|
||||
type AppPhoneLoginParam struct {
|
||||
@@ -18,6 +18,13 @@ type AppPhoneLoginParam struct {
|
||||
WxCode string `json:"wxCode" dc:"微信小程序登录临时凭证,用于后端绑定openid"`
|
||||
}
|
||||
|
||||
type AppPhoneSmsLoginParam struct {
|
||||
TenantId string `json:"tenantId" v:"required#租户ID不能为空" dc:"租户ID"`
|
||||
Phone string `json:"phone" v:"required|phone#手机号不能为空|手机号格式不正确" dc:"手机号"`
|
||||
SmsCode string `json:"smsCode" v:"required#短信验证码不能为空" dc:"短信验证码"`
|
||||
SelectedUserId int64 `json:"selectedUserId" dc:"手机号多账号登录时选中的用户ID"`
|
||||
}
|
||||
|
||||
type AppWechatLoginParam struct {
|
||||
TenantId string `json:"tenantId" v:"required#租户ID不能为空" dc:"租户ID"`
|
||||
WxCode string `json:"wxCode" v:"required#微信登录凭证不能为空" dc:"微信小程序登录临时凭证"`
|
||||
@@ -27,8 +34,7 @@ type AppWechatBindPhoneParam struct {
|
||||
TenantId string `json:"tenantId" v:"required#租户ID不能为空" dc:"租户ID"`
|
||||
BindTicket string `json:"bindTicket" v:"required#微信绑定凭证不能为空" dc:"微信绑定临时凭证"`
|
||||
Phone string `json:"phone" v:"required|phone#手机号不能为空|手机号格式不正确" dc:"手机号"`
|
||||
CaptchaKey string `json:"captchaKey" dc:"图形验证码Key"`
|
||||
CaptchaPoint string `json:"captchaPoint" dc:"图形验证码坐标"`
|
||||
SmsCode string `json:"smsCode" v:"required#短信验证码不能为空" dc:"短信验证码"`
|
||||
SelectedUserId int64 `json:"selectedUserId" dc:"手机号多账号绑定时选中的用户ID"`
|
||||
}
|
||||
|
||||
@@ -40,9 +46,11 @@ type AppForgotPasswordParam struct {
|
||||
}
|
||||
|
||||
type AppSendSmsParam struct {
|
||||
TenantId string `json:"tenantId" v:"required#租户ID不能为空" dc:"租户ID"`
|
||||
Phone string `json:"phone" v:"required|phone#手机号不能为空|手机号格式不正确" dc:"手机号"`
|
||||
Scene string `json:"scene" v:"required|in:register,forgotPassword#短信场景不能为空|短信场景不正确" dc:"短信场景"`
|
||||
TenantId string `json:"tenantId" v:"required#租户ID不能为空" dc:"租户ID"`
|
||||
Phone string `json:"phone" v:"required|phone#手机号不能为空|手机号格式不正确" dc:"手机号"`
|
||||
Scene string `json:"scene" v:"required|in:register,login,forgotPassword,wechatBindPhone#短信场景不能为空|短信场景不正确" dc:"短信场景"`
|
||||
CaptchaKey string `json:"captchaKey" v:"required#滑块验证码key不能为空" dc:"滑块验证码key"`
|
||||
CaptchaPoint string `json:"captchaPoint" v:"required#滑块验证码坐标不能为空" dc:"滑块验证码坐标"`
|
||||
}
|
||||
|
||||
type AppSendSmsModel struct {
|
||||
|
||||
Reference in New Issue
Block a user