Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

50 рядки
1.4 KiB

  1. package callback
  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. const OS_ANDROID = 2
  7. const OS_IOS = 1
  8. type SendActionRequest struct {
  9. *requests.RpcRequest
  10. GameId int64 `position:"Query" field:"game_id" default:"" `
  11. AgentId int64 `position:"Query" field:"agent_id" default:"" `
  12. SiteId int64 `position:"Query" field:"site_id" default:"" `
  13. Imei string `position:"Query" field:"imei" default:"" `
  14. Oaid string `position:"Query" field:"oaid" default:"" `
  15. Ip string `position:"Query" field:"ip" default:"" `
  16. Ua string `position:"Query" field:"ua" default:"" `
  17. Os int `position:"Query" field:"os" default:"" `
  18. ParamsArray []string
  19. }
  20. type SendActionResponseData struct {
  21. Account string `json:"account"`
  22. Total int `json:"total"`
  23. }
  24. type SendActionResponse struct {
  25. *responses.BaseResponse
  26. Data SendActionResponseData `json:"data"`
  27. }
  28. func CreateSendActionRequest() (req *SendActionRequest) {
  29. req = &SendActionRequest{
  30. RpcRequest: &requests.RpcRequest{},
  31. }
  32. req.InitWithApiInfo(HOST, VERSION, "/callback/ads_callback/sendAction")
  33. req.Method = requests.GET
  34. return
  35. }
  36. func CreateSendActionResponse() (response *SendActionResponse) {
  37. response = &SendActionResponse{
  38. BaseResponse: &responses.BaseResponse{},
  39. }
  40. return
  41. }