/
types.go
78 lines (68 loc) · 1.74 KB
/
types.go
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package user
type PageUserRequest struct {
Page uint32 `json:"page"`
PageSize uint32 `json:"page_size"`
App *string `json:"app"`
Username *string `json:"username"`
Phone *string `json:"phone"`
Email *string `json:"email"`
InIds []uint32 `json:"in_ids"`
NotInIds []uint32 `json:"not_in_ids"`
}
type OAuthLoginRequest struct {
App string `json:"app"`
Code string `json:"code"`
Platform string `json:"platform"`
}
type OAuthBindByPasswordRequest struct {
Username string
Password string
Captcha string
CaptchaID string
App string
Code string
Platform string
}
type OAuthBindByCaptchaRequest struct {
Username string
Captcha string
CaptchaID string
App string
Code string
Platform string
}
type PasswordLoginRequest struct {
App string `json:"app"`
Username string `json:"username"`
Password string `json:"password"`
Captcha string `json:"captcha"`
CaptchaID string `json:"captcha_id"`
}
type PasswordRegisterRequest struct {
App string `json:"app"`
Username string `json:"username"`
Password string `json:"password"`
Captcha string `json:"captcha"`
CaptchaID string `json:"captcha_id"`
}
type CaptchaLoginRequest struct {
App string `json:"app"`
Username string `json:"username"`
Captcha string `json:"captcha"`
CaptchaID string `json:"captcha_id"`
}
type CaptchaRegisterRequest struct {
App string `json:"app"`
Username string `json:"username"`
Captcha string `json:"captcha"`
CaptchaID string `json:"captcha_id"`
}
type Password struct {
Password string `json:"password"`
Time int64 `json:"time"`
}
type CaptchaResponse struct {
ID string `json:"id"`
Expire int `json:"expire"`
Base64 string `json:"base64"`
}