service.proto 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. syntax = "proto3";
  2. option java_package = "pleiades.business.service.season.episode.v1";
  3. package pgc.service.season.episode.v1;
  4. option java_multiple_files = true;
  5. option go_package = "v1";
  6. import "app/service/openplatform/pgc-season/api/grpc/episode/v1/model.proto";
  7. // EpisodeInfoReq ep request param
  8. message EpisodeInfoReq {
  9. // episode_ids
  10. repeated int32 episode_ids = 1;
  11. }
  12. // EpAidReq aids request param
  13. message EpAidReq {
  14. // aids
  15. repeated int32 aids = 1;
  16. }
  17. // EpisodeInfoReply ep response
  18. message EpisodeInfoReply {
  19. // infos
  20. map<int32, EpisodeInfoProto> infos = 1;
  21. }
  22. // EpisodeCardsReply cards
  23. message EpisodeCardsReply {
  24. // cards
  25. map<int32, EpisodeCardsProto> cards = 1;
  26. }
  27. // EpReq epids请求参数
  28. message EpReq {
  29. // aids
  30. repeated int32 epids = 1;
  31. // 是否要查出下架的 默认0
  32. int32 need_all = 2;
  33. }
  34. // SectionEeq 请求参数
  35. message SectionEpisodeReq {
  36. // sections
  37. repeated int32 sections = 1;
  38. // season_type
  39. int32 season_type = 2;
  40. }
  41. // SectionReply 分节eps
  42. message SectionEpisodeReply {
  43. // infos
  44. map<int32, SectionEpisodeProto> episodes = 1;
  45. }
  46. // EpClearReq ClearCache请求参数
  47. message EpClearReq {
  48. // ep_id
  49. int32 ep_id = 1;
  50. // aid
  51. int32 aid = 2;
  52. }
  53. // EpisodeBadgeReq 请求参数
  54. message EpisodeBadgeReq {
  55. //ep_id
  56. int32 ep_id = 1;
  57. // ep_status
  58. int32 ep_status = 2;
  59. // is_finished
  60. int32 is_finished = 3;
  61. }
  62. // EpisodeBadgesReq 请求参数
  63. message EpisodeBadgesReq {
  64. repeated EpisodeBadgeReq episode_badges = 1;
  65. }
  66. // EpisodeBadgesReply .
  67. message EpisodeBadgesReply {
  68. map<int32, EpisodeBadgeProto> badges = 1;
  69. }
  70. // Episode service
  71. service Episode {
  72. // 根据ep_ids 返回ep详情
  73. rpc List (EpisodeInfoReq) returns (EpisodeInfoReply);
  74. // 根据aids 返回ep详情
  75. rpc ListByAids (EpAidReq) returns (EpisodeInfoReply);
  76. // 根据section返回eps
  77. rpc ListBySection (SectionEpisodeReq) returns (SectionEpisodeReply);
  78. // 根据epid返回season,episode基本信息
  79. rpc Cards (EpReq) returns (EpisodeCardsReply);
  80. // 根据ep_id or aid清除mc缓存
  81. rpc ClearCache (EpClearReq) returns (EmptyProto);
  82. // 根据ep_ids 返回ep对应的badge
  83. rpc Badges (EpisodeBadgesReq) returns (EpisodeBadgesReply);
  84. // 根据aids 返回ep对应的EpisodeCards
  85. rpc CardsByAids (EpAidReq) returns (EpisodeCardsReply);
  86. }