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.

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