rpc.go 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. package model
  2. const (
  3. Article = int8(1)
  4. TypeVideo = int8(2)
  5. TypeMusic = int8(3)
  6. TypeTopic = int8(4)
  7. TypePlayVideo = int8(5)
  8. TypePlayList = int8(6)
  9. TypeBangumi = int8(7)
  10. TypeMoe = int8(8)
  11. TypeComic = int8(9)
  12. TypeEsports = int8(10)
  13. TypeMediaList = int8(11)
  14. TypeMusicNew = int8(12)
  15. )
  16. type ArgAllFolders struct {
  17. Type int8
  18. Mid int64
  19. Vmid int64
  20. Oid int64
  21. RealIP string
  22. }
  23. type ArgFolder struct {
  24. Type int8
  25. Fid int64
  26. Mid int64
  27. Vmid int64
  28. RealIP string
  29. }
  30. type ArgFVmid struct {
  31. Fid int64
  32. Vmid int64
  33. }
  34. func (f *ArgFVmid) MediaID() int64 {
  35. return f.Fid*100 + f.Vmid%100
  36. }
  37. type ArgFolders struct {
  38. Type int8
  39. Mid int64
  40. FVmids []*ArgFVmid
  41. RealIP string
  42. }
  43. type ArgAddFolder struct {
  44. Type int8
  45. Mid int64
  46. Name string
  47. Description string
  48. Cover string
  49. Public int8
  50. Cookie string
  51. AccessKey string
  52. RealIP string
  53. }
  54. type ArgUpdateFolder struct {
  55. Type int8
  56. Fid int64
  57. Mid int64
  58. Name string
  59. Description string
  60. Cover string
  61. Public int8
  62. Cookie string
  63. AccessKey string
  64. RealIP string
  65. }
  66. type ArgDelFolder struct {
  67. Type int8
  68. Mid int64
  69. Fid int64
  70. RealIP string
  71. }
  72. type ArgFavs struct {
  73. Type int8
  74. Mid int64
  75. Vmid int64
  76. Fid int64
  77. Tv int
  78. Tid int
  79. Pn int
  80. Ps int
  81. Keyword string
  82. Order string
  83. RealIP string
  84. }
  85. type ArgAdd struct {
  86. Type int8
  87. Mid int64
  88. Oid int64
  89. Fid int64
  90. RealIP string
  91. }
  92. type ArgDel struct {
  93. Type int8
  94. Mid int64
  95. Oid int64
  96. Fid int64
  97. RealIP string
  98. }
  99. type ArgAdds struct {
  100. Type int8
  101. Mid int64
  102. Oid int64
  103. Fids []int64
  104. RealIP string
  105. }
  106. type ArgDels struct {
  107. Type int8
  108. Mid int64
  109. Oid int64
  110. Fids []int64
  111. RealIP string
  112. }
  113. type ArgMultiAdd struct {
  114. Type int8
  115. Mid int64
  116. Oids []int64
  117. Fid int64
  118. RealIP string
  119. }
  120. type ArgMultiDel struct {
  121. Type int8
  122. Mid int64
  123. Oids []int64
  124. Fid int64
  125. RealIP string
  126. }
  127. type ArgIsFav struct {
  128. Type int8
  129. Mid int64
  130. Oid int64
  131. RealIP string
  132. }
  133. type ArgIsFavs struct {
  134. Type int8
  135. Mid int64
  136. Oids []int64
  137. RealIP string
  138. }
  139. type ArgInDefaultFolder struct {
  140. Type int8
  141. Mid int64
  142. Oid int64
  143. RealIP string
  144. }
  145. type ArgIsFavedByFid struct {
  146. Type int8
  147. Mid int64
  148. Oid int64
  149. Fid int64
  150. RealIP string
  151. }
  152. type ArgCntUserFolders struct {
  153. Type int8
  154. Mid int64
  155. Vmid int64
  156. RealIP string
  157. }
  158. type ArgAddVideo struct {
  159. Mid int64
  160. Fids []int64
  161. Aid int64
  162. Cookie string
  163. AccessKey string
  164. RealIP string
  165. }
  166. type ArgFavoredVideos struct {
  167. Mid int64
  168. Aids []int64
  169. RealIP string
  170. }
  171. type ArgUsers struct {
  172. Type int8
  173. Oid int64
  174. Pn int
  175. Ps int
  176. RealIP string
  177. }
  178. type ArgTlists struct {
  179. Type int8
  180. Mid int64
  181. Vmid int64
  182. Fid int64
  183. RealIP string
  184. }
  185. type ArgRecents struct {
  186. Type int8
  187. Mid int64
  188. Size int
  189. RealIP string
  190. }