bigdata.go 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. package model
  2. import arcmdl "go-common/app/service/main/archive/api"
  3. // Rank bigdata rank struct
  4. type Rank struct {
  5. Note string `json:"note"`
  6. Code int `json:"code"`
  7. Page int `json:"page"`
  8. Num int `json:"num"`
  9. List []*RankArchive `json:"list"`
  10. }
  11. // RankArchive bigdata rank archive struct
  12. type RankArchive struct {
  13. Aid interface{} `json:"aid"`
  14. Author string `json:"author"`
  15. Coins int32 `json:"coins"`
  16. Duration string `json:"duration"`
  17. Mid int64 `json:"mid"`
  18. Pic string `json:"pic"`
  19. Play interface{} `json:"play"`
  20. Pts int `json:"pts"`
  21. Title string `json:"title"`
  22. Trend *int `json:"trend"`
  23. VideoReview int32 `json:"video_review"`
  24. Rights arcmdl.Rights `json:"rights"`
  25. Others []*Other `json:"others,omitempty"`
  26. }
  27. // Other bigdata other rank struct
  28. type Other struct {
  29. Aid interface{} `json:"aid"`
  30. Play interface{} `json:"play"`
  31. VideoReview int32 `json:"video_review"`
  32. Coins int32 `json:"coins"`
  33. Pts int `json:"pts"`
  34. Title string `json:"title"`
  35. Pic string `json:"pic"`
  36. Duration string `json:"duration"`
  37. Rights arcmdl.Rights `json:"rights"`
  38. }
  39. // RankIndex rank index struct.
  40. type RankIndex struct {
  41. Code int `json:"code"`
  42. Pages int `json:"pages"`
  43. Num int `json:"num"`
  44. List map[string]*IndexArchive `json:"list"`
  45. }
  46. // IndexArchive rank index archive struct.
  47. type IndexArchive struct {
  48. Aid string `json:"aid"`
  49. Typename string `json:"typename"`
  50. Title string `json:"title"`
  51. Subtitle string `json:"subtitle"`
  52. Play interface{} `json:"play"`
  53. Review int32 `json:"review"`
  54. VideoReview int32 `json:"video_review"`
  55. Favorites int32 `json:"favorites"`
  56. Mid int64 `json:"mid"`
  57. Author string `json:"author"`
  58. Description string `json:"description"`
  59. Create string `json:"create"`
  60. Pic string `json:"pic"`
  61. Coins int32 `json:"coins"`
  62. Duration string `json:"duration"`
  63. Badgepay bool `json:"badgepay"`
  64. Rights arcmdl.Rights `json:"rights"`
  65. }
  66. // RankRecommend rank recommend data struct
  67. type RankRecommend struct {
  68. Code int `json:"code"`
  69. Pages int `json:"pages"`
  70. Num int `json:"num"`
  71. List []*IndexArchive `json:"list"`
  72. }
  73. // RankRegion rank region data struct
  74. type RankRegion struct {
  75. Hot *RankDetail `json:"hot"`
  76. HotOriginal *RankDetail `json:"hot_original"`
  77. }
  78. // RankDetail rank region detail struct
  79. type RankDetail struct {
  80. Note string `json:"note"`
  81. Code int `json:"code"`
  82. Page int `json:"page"`
  83. Num int `json:"num"`
  84. List []*RegionArchive `json:"list"`
  85. }
  86. // RegionArchive bigdata region rank archive struct
  87. type RegionArchive struct {
  88. Aid string `json:"aid"`
  89. Typename string `json:"typename"`
  90. Title string `json:"title"`
  91. Subtitle string `json:"subtitle"`
  92. Play interface{} `json:"play"`
  93. Review int32 `json:"review"`
  94. VideoReview int32 `json:"video_review"`
  95. Favorites int32 `json:"favorites"`
  96. Mid int64 `json:"mid"`
  97. Author string `json:"author"`
  98. Description string `json:"description"`
  99. Create string `json:"create"`
  100. Pic string `json:"pic"`
  101. Coins int32 `json:"coins"`
  102. Duration string `json:"duration"`
  103. Badgepay bool `json:"badgepay"`
  104. Pts int `json:"pts"`
  105. Rights arcmdl.Rights `json:"rights"`
  106. }
  107. // TagArchive bigdata region rank archive struct
  108. type TagArchive struct {
  109. Title string `json:"title"`
  110. Author string `json:"author"`
  111. Description string `json:"description"`
  112. Pic string `json:"pic"`
  113. Play string `json:"play"`
  114. Favorites string `json:"favorites"`
  115. Mid string `json:"mid"`
  116. Review string `json:"review"`
  117. CreatedAt string `json:"created_at"`
  118. VideoReview string `json:"video_review"`
  119. Coins string `json:"coins"`
  120. Duration string `json:"duration"`
  121. Aid int64 `json:"aid"`
  122. Pts int `json:"pts"`
  123. Trend int `json:"trend"`
  124. Rights arcmdl.Rights `json:"rights"`
  125. }
  126. // RankData rank service return data
  127. type RankData struct {
  128. Note string `json:"note"`
  129. List []*RankArchive `json:"list"`
  130. }
  131. // RankNewArchive rank archive new struct
  132. type RankNewArchive struct {
  133. *NewArchive
  134. *RankStat
  135. Others []*NewArchive `json:"others,omitempty"`
  136. }
  137. // RankNew rank new struct.
  138. type RankNew struct {
  139. Note string `json:"note"`
  140. List []*RankNewArchive `json:"list"`
  141. }
  142. // NewArchive new rank archive struct
  143. type NewArchive struct {
  144. Aid int64 `json:"aid"`
  145. Score int `json:"score"`
  146. }
  147. // RankStat rank archive stat.
  148. type RankStat struct {
  149. Play int32 `json:"play"`
  150. Coin int32 `json:"coin"`
  151. Danmu int32 `json:"danmu"`
  152. }
  153. // Custom game custom struct
  154. type Custom struct {
  155. Aid int64 `json:"aid"`
  156. Title string `json:"title"`
  157. Pic string `json:"pic"`
  158. Note string `json:"note"`
  159. Pos int `json:"-"`
  160. URL string `json:"url"`
  161. Type string `json:"type"`
  162. }