model.proto 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. // EpisodeInfoProto .
  7. message EpisodeInfoProto {
  8. // episode_id
  9. int32 episode_id = 1;
  10. // aid
  11. int32 aid = 2;
  12. // cid
  13. int32 cid = 3;
  14. // 排序值 ord
  15. int32 index = 4;
  16. // 短标题
  17. string index_title = 5;
  18. // 长标题
  19. string long_title = 6;
  20. // ep封面
  21. string cover = 7;
  22. // ep status
  23. int32 episode_status = 8;
  24. // season_id
  25. int32 season_id = 9;
  26. // 定时上线上线时是否设置对应番剧为已完结:0不设置,1设置
  27. int32 online_finish = 10;
  28. // ep对应分节id
  29. int32 section_id = 11;
  30. // 视频来源 bangumi,cid,vupload,pptv,qq
  31. string from = 12;
  32. // vid
  33. string vid = 13;
  34. // pub_real_time format:yyyy-mm-dd HH:mm:ss
  35. string pub_real_time = 14;
  36. // badge
  37. string badge = 15;
  38. // badge_type
  39. int32 badge_type = 16;
  40. // ep时长
  41. int32 duration = 17;
  42. }
  43. // EpisodeCardsProto .
  44. message EpisodeCardsProto {
  45. // episode_id
  46. int32 episode_id = 1;
  47. // ep status
  48. int32 episode_status = 2;
  49. // 短标题
  50. string title = 3;
  51. // 长标题
  52. string long_title = 4;
  53. //封面
  54. string cover = 5;
  55. //seasonBrief
  56. EpisodeSeasonProto season = 6;
  57. // ep时长
  58. int32 duration = 7;
  59. // 第x集 xxx
  60. string show_title = 8;
  61. }
  62. // EpisodeSeasonProto .
  63. message EpisodeSeasonProto {
  64. // season_id
  65. int32 season_id = 1;
  66. // 标题
  67. string title = 2;
  68. // season status
  69. int32 season_status = 3;
  70. // 是否完结 1完结 0未完结
  71. int32 is_finish = 4;
  72. // 总集数
  73. int32 total_count = 5;
  74. // 更新至xx话
  75. string new_ep_show = 6;
  76. // 最新一话epid
  77. int32 new_ep_id = 7;
  78. // season类型 1:番剧,2:电影,3:纪录片,4:国漫,5:电视剧
  79. int32 season_type = 8;
  80. // cover
  81. string cover = 9;
  82. // 播放数(已废弃,请使用: stat.view)
  83. int64 play_count = 10;
  84. // episode 所属 season 计数信息
  85. StatsProto stat = 11;
  86. // season类型名称
  87. string season_type_name = 12;
  88. // 角标
  89. string badge = 13;
  90. // 角标颜色
  91. int32 badge_type = 14;
  92. // 最新一话短标题
  93. string new_ep_index = 15;
  94. // 模式1:单集, 2:多集
  95. int32 mode = 16;
  96. }
  97. message StatsProto {
  98. // 追番数
  99. int64 follow = 1;
  100. // 播放数
  101. int64 view = 2;
  102. // 弹幕数
  103. int64 danmaku = 3;
  104. }
  105. // SectionEpisodeProto .
  106. message SectionEpisodeProto {
  107. // info
  108. repeated EpisodeInfoProto info = 1;
  109. }
  110. // EmptyProto .
  111. message EmptyProto {
  112. }
  113. // EpisodeBadgeProto .
  114. message EpisodeBadgeProto {
  115. // 角标类型,0粉色,1蓝色,2橙色
  116. int32 badge_type = 1;
  117. // 角标文字,如“抢先”这种
  118. string badge = 2;
  119. }