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

74 рядки
2.3 KiB

  1. package apk
  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. "time"
  6. )
  7. type SearchApkRequest struct {
  8. *requests.RpcRequest
  9. StartTime string `position:"Body" field:"startTime" default:"" `
  10. EndTime string `position:"Body" field:"endTime" default:"" `
  11. State string `position:"Body" field:"state" default:"" `
  12. SiteIds string `position:"Body" field:"siteIds" default:"" `
  13. Ver string `position:"Body" field:"ver" default:"" `
  14. SiteId int `position:"Body" field:"siteId" default:"" `
  15. AgentId int `position:"Body" field:"agentId" default:"" `
  16. GameIds string `position:"Body" field:"gameIds" default:"" `
  17. Autor string `position:"Body" field:"autor" default:"" `
  18. Page int `position:"Body" field:"page" default:"1" `
  19. Pagesize int `position:"Body" field:"pagesize" default:"20" `
  20. Order string `position:"Body" field:"order" default:"" `
  21. }
  22. type ApkLog struct {
  23. ID int `json:"Id"`
  24. GameID int `json:"GameId"`
  25. GameName string `json:"GameName"`
  26. Ver string `json:"Ver"`
  27. Top int `json:"Top"`
  28. AgentID int `json:"AgentId"`
  29. SiteID int `json:"SiteId"`
  30. Addtime time.Time `json:"Addtime"`
  31. Edittime time.Time `json:"Edittime"`
  32. State int `json:"State"`
  33. Times int `json:"Times"`
  34. ReleaseTime int `json:"ReleaseTime"`
  35. Env int `json:"Env"`
  36. AliOss int `json:"AliOss"`
  37. NeedCdn bool `json:"NeedCdn"`
  38. Autor string `json:"Autor"`
  39. Ext string `json:"Ext"`
  40. IsAugment bool `json:"IsAugment"`
  41. }
  42. type SearchApkResponse struct {
  43. *responses.BaseResponse
  44. Code int `json:"code"`
  45. Status bool `json:"status"`
  46. Msg string `json:"msg"`
  47. Data struct {
  48. Page int `json:"Page"`
  49. PageSize int `json:"PageSize"`
  50. Total int `json:"Total"`
  51. List []ApkLog `json:"List"`
  52. } `json:"data"`
  53. }
  54. func CreateSearchApkRequest() (req *SearchApkRequest) {
  55. req = &SearchApkRequest{
  56. RpcRequest: &requests.RpcRequest{},
  57. }
  58. req.InitWithApiInfo(HOST, VERSION, "/api/apk/list")
  59. req.Method = requests.POST
  60. return
  61. }
  62. func CreateSearchApkResponse() (response *SearchApkResponse) {
  63. response = &SearchApkResponse{
  64. BaseResponse: &responses.BaseResponse{},
  65. }
  66. return
  67. }