2020-08-03 20:48:58 +08:00
|
|
|
package jedi
|
2020-08-04 12:23:34 +08:00
|
|
|
|
|
|
|
import (
|
|
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
|
|
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
|
|
|
|
)
|
|
|
|
|
|
|
|
type SendSmsRequest struct {
|
|
|
|
*requests.HttpRequest
|
2020-08-06 10:35:24 +08:00
|
|
|
User string `position:"Query" field:"user" default:"-" `
|
|
|
|
Code string `position:"Query" field:"code" default:"-" `
|
|
|
|
Params string `position:"Query" field:"params" default:"-" `
|
|
|
|
Test string `position:"Body" field:"test" default:"-" `
|
2020-08-05 17:01:10 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type SendSmsResponseData struct {
|
|
|
|
Account string `json:"account"`
|
|
|
|
Createtime int64 `json:"createtime"`
|
2020-08-04 12:23:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type SendSmsResponse struct {
|
|
|
|
*responses.BaseResponse
|
2020-08-05 17:01:10 +08:00
|
|
|
Data SendSmsResponseData `json:"data"`
|
2020-08-04 12:23:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func CreateSendSmsRequest() (req *SendSmsRequest) {
|
|
|
|
req = &SendSmsRequest{
|
|
|
|
HttpRequest: &requests.HttpRequest{},
|
|
|
|
}
|
2020-08-06 10:35:24 +08:00
|
|
|
|
2020-08-05 17:01:10 +08:00
|
|
|
req.InitWithApiInfo(HOST, VERSION, "/api/sms/send")
|
2020-08-06 10:35:24 +08:00
|
|
|
req.Method = requests.POST
|
|
|
|
req.Scheme = requests.HTTP
|
2020-08-04 12:23:34 +08:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func CreateSendSmsResponse() (response *SendSmsResponse) {
|
|
|
|
response = &SendSmsResponse{
|
|
|
|
BaseResponse: &responses.BaseResponse{},
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|