syntax = "proto3"; package gorpc; option go_package = "git.goio.dev/pb/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; } 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; } 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; } 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); // 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); }