|
@@ -137,17 +137,37 @@ type RequestSmsCodeSend struct { |
|
@@ -137,17 +137,37 @@ type RequestSmsCodeSend struct { |
137
|
Phone string `json:"phone"`
|
137
|
Phone string `json:"phone"`
|
138
|
}
|
138
|
}
|
139
|
|
139
|
|
140
|
-func (r *RequestSmsCodeSend) Format() []byte {
|
140
|
+func (r RequestSmsCodeSend) Format() []byte {
|
141
|
var bt []byte
|
141
|
var bt []byte
|
142
|
bt, _ = json.Marshal(r)
|
142
|
bt, _ = json.Marshal(r)
|
143
|
return bt
|
143
|
return bt
|
144
|
}
|
144
|
}
|
145
|
|
145
|
|
146
|
//GetPath 实现IUCenterParam接口
|
146
|
//GetPath 实现IUCenterParam接口
|
147
|
-func (r *RequestSmsCodeSend) GetPath() (string, string) {
|
147
|
+func (r RequestSmsCodeSend) GetPath() (string, string) {
|
148
|
return "/sendSms", "POST"
|
148
|
return "/sendSms", "POST"
|
149
|
}
|
149
|
}
|
150
|
|
150
|
|
151
|
-//短信验正码 登录
|
151
|
+//RequestLoginSms 短信验正码 登录
|
152
|
type RequestLoginSms struct {
|
152
|
type RequestLoginSms struct {
|
|
|
153
|
+ Phone string `json:"phone"`
|
|
|
154
|
+ Captcha string `json:"captcha"`
|
|
|
155
|
+ GrantType string `json:"grantType"` //登陆方式(signInCaptcha验证码)
|
|
|
156
|
+}
|
|
|
157
|
+
|
|
|
158
|
+//ResponseLoginSms 短信验证码登录 响应
|
|
|
159
|
+type ResponseLoginSms struct {
|
|
|
160
|
+ CommResponse
|
|
|
161
|
+ Data LoginSmsData `json:"data"`
|
|
|
162
|
+}
|
|
|
163
|
+
|
|
|
164
|
+type LoginSmsData struct {
|
|
|
165
|
+ Cuid int64 `json:"cuid"`
|
|
|
166
|
+ Uname string `json:"uname"`
|
|
|
167
|
+ Phone string `json:"phone"`
|
|
|
168
|
+ Image struct {
|
|
|
169
|
+ Path string `json:"path"`
|
|
|
170
|
+ } `json:"image"`
|
|
|
171
|
+ ImToken string `json:"imtoken"`
|
|
|
172
|
+ CsAccountID int64 `json:"csAccountID"`
|
153
|
} |
173
|
} |