shortdrama.proto 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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 ShortDramaUpdateReleaseRegionsReq {
  133. int64 id = 1;
  134. string releaseRegions = 2;
  135. }
  136. message ShortDramaCopyrightInfoVo {
  137. int64 id = 1;
  138. int64 copyrightId = 2;
  139. string releaseRegions = 3;
  140. }
  141. message ShortDramaFindIdsWithCopyrightResp {
  142. repeated ShortDramaCopyrightInfoVo list = 1;
  143. }
  144. message SetTotalStatsReq {
  145. int64 dramaId = 1;
  146. string country = 2;
  147. int64 todayPlayCount = 3;
  148. int64 weeklyPlayCount = 4;
  149. int64 monthlyPlayCount = 5;
  150. }
  151. message ShortDramaStatsPlaysTotalVo {
  152. int64 id = 1;
  153. int64 dramaId = 2;
  154. string country = 3;
  155. int64 todayPlayCount = 4;
  156. int64 weeklyPlayCount = 5;
  157. int64 monthlyPlayCount = 6;
  158. int64 createTime = 7;
  159. int64 updateTime = 8;
  160. }
  161. message ShortDramaStatsPlaysTotalListReq {
  162. Page page = 1;
  163. string country = 2; // 国家代码
  164. }
  165. message ShortDramaStatsPlaysTotalListResp {
  166. int64 total = 1;
  167. repeated ShortDramaStatsPlaysTotalVo list = 2;
  168. }
  169. message FindSchedulePublishListReq { int64 status = 1; }
  170. message FindSchedulePublishListResp { repeated ShortDramaVo list = 1; }
  171. message PublishScheduleDramaReq {
  172. repeated int64 ids = 1; // 短剧ID列表,支持批量操作
  173. int64 targetStatus = 2; // 目标状态
  174. }
  175. service GoShortDramaClient {
  176. // ShortDrama
  177. rpc ShortDramaAdd(ShortDramaVo) returns (ShortDramaVo);
  178. rpc ShortDramaUpdate(ShortDramaVo) returns (Empty);
  179. rpc ShortDramaDel(Ids) returns (Empty);
  180. rpc ShortDramaGet(ShortDramaGetReq) returns (ShortDramaVo);
  181. rpc ShortDramaList(ShortDramaListReq) returns (ShortDramaListResp);
  182. rpc ShortDramaUpdateModifier(ShortDramaUpdateModifierReq) returns (Empty);
  183. rpc ShortDramaUpdateReleaseRegions(ShortDramaUpdateReleaseRegionsReq)
  184. returns (Empty);
  185. rpc ShortDramaFindIdsWithCopyright(Empty)
  186. returns (ShortDramaFindIdsWithCopyrightResp);
  187. rpc ShortDramaFindSchedulePublishList(FindSchedulePublishListReq)
  188. returns (FindSchedulePublishListResp);
  189. rpc ShortDramaPublishSchedule(PublishScheduleDramaReq) returns (Empty);
  190. // ShortDramaLanguage
  191. rpc ShortDramaLanguageList(ShortDramaLanguageListReq)
  192. returns (ShortDramaLanguageListResp);
  193. // ShortDramaEpisode
  194. rpc ShortDramaEpisodeAdd(ShortDramaEpisodeVo) returns (ShortDramaEpisodeVo);
  195. rpc ShortDramaEpisodeBatchAdd(ShortDramaEpisodeBatchAddReq) returns (Empty);
  196. rpc ShortDramaEpisodeUpdate(ShortDramaEpisodeVo) returns (Empty);
  197. rpc ShortDramaEpisodeDel(Ids) returns (Empty);
  198. rpc ShortDramaEpisodeGet(ShortDramaEpisodeGetReq)
  199. returns (ShortDramaEpisodeVo);
  200. rpc ShortDramaEpisodeList(ShortDramaEpisodeListReq)
  201. returns (ShortDramaEpisodeListResp);
  202. rpc ShortDramaEpisodeBatchRefreshUpdateTime(
  203. ShortDramaEpisodeBatchRefreshUpdateTimeReq) returns (Empty);
  204. // ShortDramaEpisodeCount
  205. rpc ShortDramaEpisodeCount(ShortDramaEpisodeCountReq)
  206. returns (ShortDramaEpisodeCountResp);
  207. rpc ShortDramaCheckName(ShortDramaCheckNameReq)
  208. returns (ShortDramaCheckNameResp);
  209. // ShortDramaStats
  210. rpc SetTotalStats(SetTotalStatsReq) returns (Empty);
  211. // ShortDramaStatsPlaysTotal
  212. rpc ShortDramaStatsPlaysTotalList(ShortDramaStatsPlaysTotalListReq)
  213. returns (ShortDramaStatsPlaysTotalListResp);
  214. }