| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- syntax = "proto3";
- package gorpc;
- option go_package = "code.clickto.dev/nomo-server/go-service-pb/client";
- import "pb/common.proto";
- message ShortDramaEpisodeVo {
- int64 id = 1;
- int64 dramaId = 2;
- int64 type = 3;
- string name = 4;
- int64 sort = 5;
- string videos = 6;
- string subtitles = 7;
- Status status = 8;
- int64 createTime = 9;
- int64 updateTime = 10;
- string danmakuUrl = 11;
- }
- message ShortDramaEpisodeGetReq { ShortDramaEpisodeVo vo = 1; }
- message ShortDramaEpisodeListReq {
- Page page = 1;
- ShortDramaEpisodeVo vo = 2;
- repeated int64 dramaIds = 3;
- }
- message ShortDramaEpisodeListResp {
- int64 total = 1;
- repeated ShortDramaEpisodeVo list = 2;
- }
- message ShortDramaEpisodeBatchAddReq {
- int64 dramaId = 1;
- repeated ShortDramaEpisodeVo episodes = 2;
- }
- message ShortDramaEpisodeBatchRefreshUpdateTimeReq { int64 dramaId = 1; }
- message ShortDramaLanguageVo {
- int64 id = 1;
- int64 dramaId = 2;
- string lang = 3;
- string title = 4;
- string description = 5;
- string covers = 6;
- string coverDominantColor = 7;
- int64 createTime = 8;
- int64 updateTime = 9;
- }
- message ShortDramaVo {
- int64 id = 1;
- string productCodes = 2;
- string title = 3;
- string description = 4;
- string covers = 5;
- string coverDominantColor = 6;
- string type = 7;
- string tags = 8;
- string releaseRegions = 9;
- int64 releaseDate = 10;
- int64 totalEpisodes = 11;
- int64 completedStatus = 12;
- string copyrightSupplier = 13;
- string copyrightDoc = 14;
- int64 copyrightPurchaseDate = 15;
- int64 copyrightExpireDate = 16;
- int64 status = 17;
- int64 createTime = 18;
- int64 updateTime = 19;
- string ghostCutId = 20;
- int64 recommend = 21;
- string otherConfig = 22;
- repeated ShortDramaLanguageVo shortDramaLanguages = 23;
- int64 mainEpisodeCount = 24;
- int64 trailerEpisodeCount = 25;
- int64 copyrightId = 26;
- int64 creator = 27;
- int64 modifier = 28;
- string operationTags = 29;
- string extraInfo = 30;
- int64 schedulePublishTime = 31;
- int64 publishTime = 32;
- }
- message ShortDramaGetReq {
- ShortDramaVo vo = 1;
- string productCode = 2;
- string countryCode = 3;
- string lang = 4;
- }
- message ShortDramaListReq {
- Page page = 1;
- ShortDramaVo vo = 2;
- repeated int64 excludeIds = 3;
- string productCode = 4;
- string countryCode = 5;
- string lang = 6;
- string publishTimeStart = 7;
- string publishTimeEnd = 8;
- repeated int64 statusList = 9;
- }
- message ShortDramaListResp {
- int64 total = 1;
- repeated ShortDramaVo list = 2;
- }
- message ShortDramaLanguageListReq {
- Page page = 1;
- ShortDramaLanguageVo vo = 2;
- }
- message ShortDramaLanguageListResp {
- int64 total = 1;
- repeated ShortDramaLanguageVo list = 2;
- }
- message ShortDramaEpisodeCountVo {
- int64 dramaId = 1;
- int64 episodeCount = 2;
- }
- message ShortDramaEpisodeCountReq {
- Page page = 1;
- Status status = 2;
- int64 type = 3;
- repeated int64 dramaIds = 4;
- }
- message ShortDramaEpisodeCountResp {
- int64 total = 1;
- repeated ShortDramaEpisodeCountVo list = 2;
- }
- message ShortDramaCheckNameReq {
- string title = 1; // 短剧名称
- int64 id = 2; // 编辑时排除当前短剧ID
- }
- message ShortDramaCheckNameResp {
- bool exists = 1; // 是否存在
- }
- message ShortDramaUpdateModifierReq {
- int64 id = 1;
- int64 modifier = 2;
- }
- message SetTotalStatsReq {
- int64 dramaId = 1;
- string country = 2;
- int64 todayPlayCount = 3;
- int64 weeklyPlayCount = 4;
- int64 monthlyPlayCount = 5;
- }
- message ShortDramaStatsPlaysTotalVo {
- int64 id = 1;
- int64 dramaId = 2;
- string country = 3;
- int64 todayPlayCount = 4;
- int64 weeklyPlayCount = 5;
- int64 monthlyPlayCount = 6;
- int64 createTime = 7;
- int64 updateTime = 8;
- }
- message ShortDramaStatsPlaysTotalListReq {
- Page page = 1;
- string country = 2; // 国家代码
- }
- message ShortDramaStatsPlaysTotalListResp {
- int64 total = 1;
- repeated ShortDramaStatsPlaysTotalVo list = 2;
- }
- message FindSchedulePublishListReq { int64 status = 1; }
- message FindSchedulePublishListResp { repeated ShortDramaVo list = 1; }
- message PublishScheduleDramaReq {
- repeated int64 ids = 1; // 短剧ID列表,支持批量操作
- int64 targetStatus = 2; // 目标状态
- }
- service GoShortDramaClient {
- // ShortDrama
- rpc ShortDramaAdd(ShortDramaVo) returns (ShortDramaVo);
- rpc ShortDramaUpdate(ShortDramaVo) returns (Empty);
- rpc ShortDramaDel(Ids) returns (Empty);
- rpc ShortDramaGet(ShortDramaGetReq) returns (ShortDramaVo);
- rpc ShortDramaList(ShortDramaListReq) returns (ShortDramaListResp);
- rpc ShortDramaUpdateModifier(ShortDramaUpdateModifierReq) returns (Empty);
- rpc ShortDramaFindSchedulePublishList(FindSchedulePublishListReq)
- returns (FindSchedulePublishListResp);
- rpc ShortDramaPublishSchedule(PublishScheduleDramaReq) returns (Empty);
- // ShortDramaLanguage
- rpc ShortDramaLanguageList(ShortDramaLanguageListReq)
- returns (ShortDramaLanguageListResp);
- // ShortDramaEpisode
- rpc ShortDramaEpisodeAdd(ShortDramaEpisodeVo) returns (ShortDramaEpisodeVo);
- rpc ShortDramaEpisodeBatchAdd(ShortDramaEpisodeBatchAddReq) returns (Empty);
- rpc ShortDramaEpisodeUpdate(ShortDramaEpisodeVo) returns (Empty);
- rpc ShortDramaEpisodeDel(Ids) returns (Empty);
- rpc ShortDramaEpisodeGet(ShortDramaEpisodeGetReq)
- returns (ShortDramaEpisodeVo);
- rpc ShortDramaEpisodeList(ShortDramaEpisodeListReq)
- returns (ShortDramaEpisodeListResp);
- rpc ShortDramaEpisodeBatchRefreshUpdateTime(
- ShortDramaEpisodeBatchRefreshUpdateTimeReq) returns (Empty);
- // ShortDramaEpisodeCount
- rpc ShortDramaEpisodeCount(ShortDramaEpisodeCountReq)
- returns (ShortDramaEpisodeCountResp);
- rpc ShortDramaCheckName(ShortDramaCheckNameReq)
- returns (ShortDramaCheckNameResp);
- // ShortDramaStats
- rpc SetTotalStats(SetTotalStatsReq) returns (Empty);
- // ShortDramaStatsPlaysTotal
- rpc ShortDramaStatsPlaysTotalList(ShortDramaStatsPlaysTotalListReq)
- returns (ShortDramaStatsPlaysTotalListResp);
- }
|