user.go
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 {
}
/*UserCompanys */
type UserCompanysRequest struct {
}
type UserCompanysResponse struct {
}
/*SwitchCompany */
type SwitchCompanyRequest struct {
CompanyId int64 `json:"company_id" valid:"Required"`
}
type SwitchCompanyResponse struct {
}