You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
969 B

  1. package jedi
  2. import (
  3. "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
  4. "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
  5. )
  6. type SendSmsRequest struct {
  7. *requests.RpcRequest
  8. User string `position:"Query" field:"user" default:"" `
  9. Code string `position:"Query" field:"code" default:"" `
  10. Params string `position:"Query" field:"params" default:"" `
  11. ParamsArray []string
  12. }
  13. type SendSmsResponseData struct {
  14. Account string `json:"account"`
  15. Total int `json:"total"`
  16. }
  17. type SendSmsResponse struct {
  18. *responses.BaseResponse
  19. Data SendSmsResponseData `json:"data"`
  20. }
  21. func CreateSendSmsRequest() (req *SendSmsRequest) {
  22. req = &SendSmsRequest{
  23. RpcRequest: &requests.RpcRequest{},
  24. }
  25. req.InitWithApiInfo(HOST, VERSION, "/api/sms/send")
  26. req.Method = requests.GET
  27. return
  28. }
  29. func CreateSendSmsResponse() (response *SendSmsResponse) {
  30. response = &SendSmsResponse{
  31. BaseResponse: &responses.BaseResponse{},
  32. }
  33. return
  34. }