7
0
gaore-common-sdk-go/services/jedi/send_sms.go

41 lines
967 B
Go
Raw Normal View History

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 {
2020-08-06 12:15:51 +08:00
*requests.RpcRequest
User string `position:"Body" field:"user" default:"" `
Code string `position:"Body" field:"code" default:"" `
Params string `position:"Body" field:"params" default:"" `
2020-08-11 18:16:37 +08:00
ParamsArray []string
2020-08-05 17:01:10 +08:00
}
type SendSmsResponseData struct {
2020-08-06 16:04:44 +08:00
Account string `json:"account"`
Total int `json:"total"`
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{
2020-08-06 12:15:51 +08:00
RpcRequest: &requests.RpcRequest{},
2020-08-04 12:23:34 +08:00
}
2020-08-05 17:01:10 +08:00
req.InitWithApiInfo(HOST, VERSION, "/api/sms/send")
req.Method = requests.POST
2020-08-04 12:23:34 +08:00
return
}
func CreateSendSmsResponse() (response *SendSmsResponse) {
response = &SendSmsResponse{
BaseResponse: &responses.BaseResponse{},
}
return
}