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.

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