...
|
...
|
@@ -137,17 +137,37 @@ type RequestSmsCodeSend struct { |
|
|
Phone string `json:"phone"`
|
|
|
}
|
|
|
|
|
|
func (r *RequestSmsCodeSend) Format() []byte {
|
|
|
func (r RequestSmsCodeSend) Format() []byte {
|
|
|
var bt []byte
|
|
|
bt, _ = json.Marshal(r)
|
|
|
return bt
|
|
|
}
|
|
|
|
|
|
//GetPath 实现IUCenterParam接口
|
|
|
func (r *RequestSmsCodeSend) GetPath() (string, string) {
|
|
|
func (r RequestSmsCodeSend) GetPath() (string, string) {
|
|
|
return "/sendSms", "POST"
|
|
|
}
|
|
|
|
|
|
//短信验正码 登录
|
|
|
//RequestLoginSms 短信验正码 登录
|
|
|
type RequestLoginSms struct {
|
|
|
Phone string `json:"phone"`
|
|
|
Captcha string `json:"captcha"`
|
|
|
GrantType string `json:"grantType"` //登陆方式(signInCaptcha验证码)
|
|
|
}
|
|
|
|
|
|
//ResponseLoginSms 短信验证码登录 响应
|
|
|
type ResponseLoginSms struct {
|
|
|
CommResponse
|
|
|
Data LoginSmsData `json:"data"`
|
|
|
}
|
|
|
|
|
|
type LoginSmsData struct {
|
|
|
Cuid int64 `json:"cuid"`
|
|
|
Uname string `json:"uname"`
|
|
|
Phone string `json:"phone"`
|
|
|
Image struct {
|
|
|
Path string `json:"path"`
|
|
|
} `json:"image"`
|
|
|
ImToken string `json:"imtoken"`
|
|
|
CsAccountID int64 `json:"csAccountID"`
|
|
|
} |
...
|
...
|
|