shortdrama.proto 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. syntax = "proto3";
  2. package gorpc;
  3. option go_package = "git.goio.dev/pb/go-service-pb/client";
  4. import "pb/common.proto";
  5. message ShortDramaEpisodeVo {
  6. int64 id = 1;
  7. int64 dramaId = 2;
  8. int64 type = 3;
  9. string name = 4;
  10. int64 sort = 5;
  11. string videos = 6;
  12. string subtitles = 7;
  13. Status status = 8;
  14. int64 createTime = 9;
  15. int64 updateTime = 10;
  16. string danmakuUrl = 11;
  17. }
  18. message ShortDramaEpisodeGetReq { ShortDramaEpisodeVo vo = 1; }
  19. message ShortDramaEpisodeListReq {
  20. Page page = 1;
  21. ShortDramaEpisodeVo vo = 2;
  22. repeated int64 dramaIds = 3;
  23. }
  24. message ShortDramaEpisodeListResp {
  25. int64 total = 1;
  26. repeated ShortDramaEpisodeVo list = 2;
  27. }
  28. message ShortDramaEpisodeBatchAddReq {
  29. int64 dramaId = 1;
  30. repeated ShortDramaEpisodeVo episodes = 2;
  31. }
  32. message ShortDramaEpisodeBatchRefreshUpdateTimeReq {
  33. int64 dramaId = 1;
  34. }
  35. message ShortDramaLanguageVo {
  36. int64 id = 1;
  37. int64 dramaId = 2;
  38. string lang = 3;
  39. string title = 4;
  40. string description = 5;
  41. string covers = 6;
  42. string coverDominantColor = 7;
  43. int64 createTime = 8;
  44. int64 updateTime = 9;
  45. }
  46. message ShortDramaVo {
  47. int64 id = 1;
  48. string productCodes = 2;
  49. string title = 3;
  50. string description = 4;
  51. string covers = 5;
  52. string coverDominantColor = 6;
  53. string type = 7;
  54. string tags = 8;
  55. string releaseRegions = 9;
  56. int64 releaseDate = 10;
  57. int64 totalEpisodes = 11;
  58. int64 completedStatus = 12;
  59. string copyrightSupplier = 13;
  60. string copyrightDoc = 14;
  61. int64 copyrightPurchaseDate = 15;
  62. int64 copyrightExpireDate = 16;
  63. int64 status = 17;
  64. int64 createTime = 18;
  65. int64 updateTime = 19;
  66. string ghostCutId = 20;
  67. int64 recommend = 21;
  68. string otherConfig = 22;
  69. repeated ShortDramaLanguageVo shortDramaLanguages = 23;
  70. int64 mainEpisodeCount = 24;
  71. int64 trailerEpisodeCount = 25;
  72. int64 copyrightId = 26;
  73. int64 creator = 27;
  74. int64 modifier = 28;
  75. }
  76. message ShortDramaGetReq { ShortDramaVo vo = 1; string productCode = 2; string countryCode = 3; string lang = 4;}
  77. message ShortDramaListReq {
  78. Page page = 1;
  79. ShortDramaVo vo = 2;
  80. repeated int64 excludeIds = 3;
  81. string productCode = 4;
  82. string countryCode = 5;
  83. string lang = 6;
  84. }
  85. message ShortDramaListResp {
  86. int64 total = 1;
  87. repeated ShortDramaVo list = 2;
  88. }
  89. message ShortDramaLanguageListReq {
  90. Page page = 1;
  91. ShortDramaLanguageVo vo = 2;
  92. }
  93. message ShortDramaLanguageListResp {
  94. int64 total = 1;
  95. repeated ShortDramaLanguageVo list = 2;
  96. }
  97. message ShortDramaEpisodeCountVo {
  98. int64 dramaId = 1;
  99. int64 episodeCount = 2;
  100. }
  101. message ShortDramaEpisodeCountReq {
  102. Page page = 1;
  103. Status status = 2;
  104. int64 type = 3;
  105. repeated int64 dramaIds = 4;
  106. }
  107. message ShortDramaEpisodeCountResp {
  108. int64 total = 1;
  109. repeated ShortDramaEpisodeCountVo list = 2;
  110. }
  111. message ShortDramaCheckNameReq {
  112. string title = 1; // 短剧名称
  113. int64 id = 2; // 编辑时排除当前短剧ID
  114. }
  115. message ShortDramaCheckNameResp {
  116. bool exists = 1; // 是否存在
  117. }
  118. message ShortDramaUpdateModifierReq {
  119. int64 id = 1;
  120. int64 modifier = 2;
  121. }
  122. message SetTotalStatsReq {
  123. int64 dramaId = 1;
  124. string country = 2;
  125. int64 todayPlayCount = 3;
  126. int64 weeklyPlayCount = 4;
  127. int64 monthlyPlayCount = 5;
  128. }
  129. message ShortDramaStatsPlaysTotalVo {
  130. int64 id = 1;
  131. int64 dramaId = 2;
  132. string country = 3;
  133. int64 todayPlayCount = 4;
  134. int64 weeklyPlayCount = 5;
  135. int64 monthlyPlayCount = 6;
  136. int64 createTime = 7;
  137. int64 updateTime = 8;
  138. }
  139. message ShortDramaStatsPlaysTotalListReq {
  140. Page page = 1;
  141. string country = 2; // 国家代码
  142. }
  143. message ShortDramaStatsPlaysTotalListResp {
  144. int64 total = 1;
  145. repeated ShortDramaStatsPlaysTotalVo list = 2;
  146. }
  147. service GoShortDramaClient {
  148. // ShortDrama
  149. rpc ShortDramaAdd(ShortDramaVo) returns (ShortDramaVo);
  150. rpc ShortDramaUpdate(ShortDramaVo) returns (Empty);
  151. rpc ShortDramaDel(Ids) returns (Empty);
  152. rpc ShortDramaGet(ShortDramaGetReq) returns (ShortDramaVo);
  153. rpc ShortDramaList(ShortDramaListReq) returns (ShortDramaListResp);
  154. rpc ShortDramaUpdateModifier(ShortDramaUpdateModifierReq) returns (Empty);
  155. // ShortDramaLanguage
  156. rpc ShortDramaLanguageList(ShortDramaLanguageListReq) returns (ShortDramaLanguageListResp);
  157. // ShortDramaEpisode
  158. rpc ShortDramaEpisodeAdd(ShortDramaEpisodeVo) returns (ShortDramaEpisodeVo);
  159. rpc ShortDramaEpisodeBatchAdd(ShortDramaEpisodeBatchAddReq) returns (Empty);
  160. rpc ShortDramaEpisodeUpdate(ShortDramaEpisodeVo) returns (Empty);
  161. rpc ShortDramaEpisodeDel(Ids) returns (Empty);
  162. rpc ShortDramaEpisodeGet(ShortDramaEpisodeGetReq) returns (ShortDramaEpisodeVo);
  163. rpc ShortDramaEpisodeList(ShortDramaEpisodeListReq) returns (ShortDramaEpisodeListResp);
  164. rpc ShortDramaEpisodeBatchRefreshUpdateTime(ShortDramaEpisodeBatchRefreshUpdateTimeReq) returns (Empty);
  165. // ShortDramaEpisodeCount
  166. rpc ShortDramaEpisodeCount(ShortDramaEpisodeCountReq) returns (ShortDramaEpisodeCountResp);
  167. rpc ShortDramaCheckName(ShortDramaCheckNameReq) returns (ShortDramaCheckNameResp);
  168. // ShortDramaStats
  169. rpc SetTotalStats(SetTotalStatsReq) returns (Empty);
  170. // ShortDramaStatsPlaysTotal
  171. rpc ShortDramaStatsPlaysTotalList(ShortDramaStatsPlaysTotalListReq) returns (ShortDramaStatsPlaysTotalListResp);
  172. }