user.go
836 字节
package protocol
/*修改手机号-验证旧手机验证码 */
type CheckSmsCodeRequest struct {
Captcha string `json:"captcha" valid:"Required"`
}
type CheckSmsCodeResponse struct {
}
/*修改手机号*/
type ChangePhoneRequest struct {
Phone string `json:"phone" valid:"Mobile"`
Captcha string `json:"captcha" valid:"Required"`
}
type ChangePhoneResponse struct {
}
/*ResetPassword */
type ResetPasswordRequest struct {
NewPwd string `json:"newPwd" valid:"Required"`
ConfirmPwd string `json:"confirmPwd" valid:"Required"`
}
type ResetPasswordResponse struct {
}
/*ChangePassword */
type ChangePasswordRequest struct {
NewPwd string `json:"newPwd" valid:"Required"`
ConfirmPwd string `json:"confirmPwd" valid:"Required"`
OldPwd string `json:"oldPwd" valid:"Required"`
}
type ChangePasswordResponse struct {
}