正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -42,7 +42,7 @@ type JWTUserInfo struct { | @@ -42,7 +42,7 @@ type JWTUserInfo struct { | ||
| 42 | 42 | ||
| 43 | /*SmsCode*/ | 43 | /*SmsCode*/ |
| 44 | type SmsCodeRequest struct { | 44 | type SmsCodeRequest struct { |
| 45 | - Phone string `json:"phone" valid:"Required;Mobile"` | 45 | + Phone string `json:"phone" valid:"Required"` |
| 46 | Content string `json:"-"` | 46 | Content string `json:"-"` |
| 47 | SendType string `json:"send_type"` //sms_login_code sms_change_mobile | 47 | SendType string `json:"send_type"` //sms_login_code sms_change_mobile |
| 48 | 48 |
| @@ -50,7 +50,7 @@ type CheckSmsCodeResponse struct { | @@ -50,7 +50,7 @@ type CheckSmsCodeResponse struct { | ||
| 50 | 50 | ||
| 51 | /*修改手机号*/ | 51 | /*修改手机号*/ |
| 52 | type ChangePhoneRequest struct { | 52 | type ChangePhoneRequest struct { |
| 53 | - Phone string `json:"phone" valid:"Mobile"` | 53 | + Phone string `json:"phone" valid:"Required"` |
| 54 | Captcha string `json:"captcha" valid:"Required"` | 54 | Captcha string `json:"captcha" valid:"Required"` |
| 55 | 55 | ||
| 56 | OldPhone string `json:"oldPhone" valid:"Required"` | 56 | OldPhone string `json:"oldPhone" valid:"Required"` |
-
请 注册 或 登录 后发表评论