shortdrama.proto 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. syntax = "proto3";
  2. package gorpc;
  3. option go_package = "code.clickto.dev/nomo-server/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 { int64 dramaId = 1; }
  33. message ShortDramaLanguageVo {
  34. int64 id = 1;
  35. int64 dramaId = 2;
  36. string lang = 3;
  37. string title = 4;
  38. string description = 5;
  39. string covers = 6;
  40. string coverDominantColor = 7;
  41. int64 createTime = 8;
  42. int64 updateTime = 9;
  43. }
  44. message ShortDramaVo {
  45. int64 id = 1;
  46. string productCodes = 2;
  47. string title = 3;
  48. string description = 4;
  49. string covers = 5;
  50. string coverDominantColor = 6;
  51. string type = 7;
  52. string tags = 8;
  53. string releaseRegions = 9;
  54. int64 releaseDate = 10;
  55. int64 totalEpisodes = 11;
  56. int64 completedStatus = 12;
  57. string copyrightSupplier = 13;
  58. string copyrightDoc = 14;
  59. int64 copyrightPurchaseDate = 15;
  60. int64 copyrightExpireDate = 16;
  61. int64 status = 17;
  62. int64 createTime = 18;
  63. int64 updateTime = 19;
  64. string ghostCutId = 20;
  65. int64 recommend = 21;
  66. string otherConfig = 22;
  67. repeated ShortDramaLanguageVo shortDramaLanguages = 23;
  68. int64 mainEpisodeCount = 24;
  69. int64 trailerEpisodeCount = 25;
  70. int64 copyrightId = 26;
  71. int64 creator = 27;
  72. int64 modifier = 28;
  73. string operationTags = 29;
  74. string extraInfo = 30;
  75. int64 schedulePublishTime = 31;
  76. int64 publishTime = 32;
  77. }
  78. message ShortDramaGetReq {
  79. ShortDramaVo vo = 1;
  80. string productCode = 2;
  81. string countryCode = 3;
  82. string lang = 4;
  83. }
  84. message ShortDramaListReq {
  85. Page page = 1;
  86. ShortDramaVo vo = 2;
  87. repeated int64 excludeIds = 3;
  88. string productCode = 4;
  89. string countryCode = 5;
  90. string lang = 6;
  91. string publishTimeStart = 7;
  92. string publishTimeEnd = 8;
  93. repeated int64 statusList = 9;
  94. }
  95. message ShortDramaListResp {
  96. int64 total = 1;
  97. repeated ShortDramaVo list = 2;
  98. }
  99. message ShortDramaLanguageListReq {
  100. Page page = 1;
  101. ShortDramaLanguageVo vo = 2;
  102. }
  103. message ShortDramaLanguageListResp {
  104. int64 total = 1;
  105. repeated ShortDramaLanguageVo list = 2;
  106. }
  107. message ShortDramaEpisodeCountVo {
  108. int64 dramaId = 1;
  109. int64 episodeCount = 2;
  110. }
  111. message ShortDramaEpisodeCountReq {
  112. Page page = 1;
  113. Status status = 2;
  114. int64 type = 3;
  115. repeated int64 dramaIds = 4;
  116. }
  117. message ShortDramaEpisodeCountResp {
  118. int64 total = 1;
  119. repeated ShortDramaEpisodeCountVo list = 2;
  120. }
  121. message ShortDramaCheckNameReq {
  122. string title = 1; // 短剧名称
  123. int64 id = 2; // 编辑时排除当前短剧ID
  124. }
  125. message ShortDramaCheckNameResp {
  126. bool exists = 1; // 是否存在
  127. }
  128. message ShortDramaUpdateModifierReq {
  129. int64 id = 1;
  130. int64 modifier = 2;
  131. }
  132. message SetTotalStatsReq {
  133. int64 dramaId = 1;
  134. string country = 2;
  135. int64 todayPlayCount = 3;
  136. int64 weeklyPlayCount = 4;
  137. int64 monthlyPlayCount = 5;
  138. }
  139. message ShortDramaStatsPlaysTotalVo {
  140. int64 id = 1;
  141. int64 dramaId = 2;
  142. string country = 3;
  143. int64 todayPlayCount = 4;
  144. int64 weeklyPlayCount = 5;
  145. int64 monthlyPlayCount = 6;
  146. int64 createTime = 7;
  147. int64 updateTime = 8;
  148. }
  149. message ShortDramaStatsPlaysTotalListReq {
  150. Page page = 1;
  151. string country = 2; // 国家代码
  152. }
  153. message ShortDramaStatsPlaysTotalListResp {
  154. int64 total = 1;
  155. repeated ShortDramaStatsPlaysTotalVo list = 2;
  156. }
  157. message FindSchedulePublishListReq { int64 status = 1; }
  158. message FindSchedulePublishListResp { repeated ShortDramaVo list = 1; }
  159. message PublishScheduleDramaReq {
  160. repeated int64 ids = 1; // 短剧ID列表,支持批量操作
  161. int64 targetStatus = 2; // 目标状态
  162. }
  163. service GoShortDramaClient {
  164. // ShortDrama
  165. rpc ShortDramaAdd(ShortDramaVo) returns (ShortDramaVo);
  166. rpc ShortDramaUpdate(ShortDramaVo) returns (Empty);
  167. rpc ShortDramaDel(Ids) returns (Empty);
  168. rpc ShortDramaGet(ShortDramaGetReq) returns (ShortDramaVo);
  169. rpc ShortDramaList(ShortDramaListReq) returns (ShortDramaListResp);
  170. rpc ShortDramaUpdateModifier(ShortDramaUpdateModifierReq) returns (Empty);
  171. rpc ShortDramaFindSchedulePublishList(FindSchedulePublishListReq)
  172. returns (FindSchedulePublishListResp);
  173. rpc ShortDramaPublishSchedule(PublishScheduleDramaReq) returns (Empty);
  174. // ShortDramaLanguage
  175. rpc ShortDramaLanguageList(ShortDramaLanguageListReq)
  176. returns (ShortDramaLanguageListResp);
  177. // ShortDramaEpisode
  178. rpc ShortDramaEpisodeAdd(ShortDramaEpisodeVo) returns (ShortDramaEpisodeVo);
  179. rpc ShortDramaEpisodeBatchAdd(ShortDramaEpisodeBatchAddReq) returns (Empty);
  180. rpc ShortDramaEpisodeUpdate(ShortDramaEpisodeVo) returns (Empty);
  181. rpc ShortDramaEpisodeDel(Ids) returns (Empty);
  182. rpc ShortDramaEpisodeGet(ShortDramaEpisodeGetReq)
  183. returns (ShortDramaEpisodeVo);
  184. rpc ShortDramaEpisodeList(ShortDramaEpisodeListReq)
  185. returns (ShortDramaEpisodeListResp);
  186. rpc ShortDramaEpisodeBatchRefreshUpdateTime(
  187. ShortDramaEpisodeBatchRefreshUpdateTimeReq) returns (Empty);
  188. // ShortDramaEpisodeCount
  189. rpc ShortDramaEpisodeCount(ShortDramaEpisodeCountReq)
  190. returns (ShortDramaEpisodeCountResp);
  191. rpc ShortDramaCheckName(ShortDramaCheckNameReq)
  192. returns (ShortDramaCheckNameResp);
  193. // ShortDramaStats
  194. rpc SetTotalStats(SetTotalStatsReq) returns (Empty);
  195. // ShortDramaStatsPlaysTotal
  196. rpc ShortDramaStatsPlaysTotalList(ShortDramaStatsPlaysTotalListReq)
  197. returns (ShortDramaStatsPlaysTotalListResp);
  198. }