fix: unite grpc api protos from 7.41.0+ (#774)
* fix: viewunite grpc protos from 7.41.0+ * fix typo * fix: OgvSeasons * fix: Relates * fix: pgcanymodel Stat * fix: playshared.proto * update: playerunite * fix mistake in playunite proto
This commit is contained in:
@@ -22,6 +22,8 @@ message PlayViewUniteReq {
|
||||
string from_spmid = 3;
|
||||
// 补充信息, 如ep_id等
|
||||
map<string, string> extra_content = 4;
|
||||
//
|
||||
string bvid = 5;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -42,4 +44,6 @@ message PlayViewUniteReply {
|
||||
bilibili.playershared.QnTrialInfo qn_trial_info = 7;
|
||||
//
|
||||
bilibili.playershared.History history = 8;
|
||||
//
|
||||
bilibili.playershared.ViewInfo view_info = 9;
|
||||
}
|
||||
|
||||
2009
grpc_api/bilibili/app/viewunite/common.proto
Normal file
2009
grpc_api/bilibili/app/viewunite/common.proto
Normal file
File diff suppressed because it is too large
Load Diff
@@ -2,10 +2,244 @@ syntax = "proto3";
|
||||
|
||||
package bilibili.app.viewunite.pgcanymodel;
|
||||
|
||||
import "bilibili/app/viewunite/common.proto";
|
||||
|
||||
//
|
||||
message Earphone {
|
||||
//
|
||||
string product_model = 1;
|
||||
//
|
||||
string like_toast_text = 2;
|
||||
//
|
||||
string switch_toast_text = 3;
|
||||
//
|
||||
string like_toast_voice = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message EarphoneConf {
|
||||
//
|
||||
repeated Earphone sp_phones = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message MultiViewInfo {
|
||||
//
|
||||
bool is_multi_view_season = 1;
|
||||
//
|
||||
string changing_dance = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message OgvData {
|
||||
//
|
||||
int32 media_id = 1;
|
||||
//
|
||||
int64 season_id = 2;
|
||||
//
|
||||
int32 season_type = 3;
|
||||
//
|
||||
int32 show_season_type = 4;
|
||||
//
|
||||
Rights rights = 5;
|
||||
//
|
||||
UserStatus user_status = 6;
|
||||
//
|
||||
int64 aid = 7;
|
||||
//
|
||||
Stat stat = 8;
|
||||
//
|
||||
int32 mode = 9;
|
||||
//
|
||||
Publish publish = 10;
|
||||
//
|
||||
PlayStrategy play_strategy = 11;
|
||||
//
|
||||
MultiViewInfo multi_view_info = 12;
|
||||
//
|
||||
OgvSwitch ogv_switch = 13;
|
||||
//
|
||||
int32 total_ep = 14;
|
||||
//
|
||||
bilibili.app.viewunite.common.NewEp new_ep = 15;
|
||||
//
|
||||
Reserve reserve = 16;
|
||||
//
|
||||
int32 status = 17;
|
||||
//
|
||||
repeated PlayFloatLayerActivity activity_float_layer = 18;
|
||||
//
|
||||
EarphoneConf earphone_conf = 19;
|
||||
//
|
||||
string cover = 20;
|
||||
//
|
||||
string square_cover = 21;
|
||||
//
|
||||
string share_url = 22;
|
||||
//
|
||||
string short_link = 23;
|
||||
//
|
||||
string title = 24;
|
||||
//
|
||||
string horizontal_cover169 = 25;
|
||||
//
|
||||
string horizontal_cover1610 = 26;
|
||||
//
|
||||
int32 has_can_play_ep = 27;
|
||||
}
|
||||
|
||||
//
|
||||
message OgvSwitch {
|
||||
//
|
||||
int32 reduce_short_title_spacing = 1;
|
||||
//
|
||||
int32 merge_position_section_for_cinema = 2;
|
||||
//
|
||||
int32 merge_preview_section = 3;
|
||||
//
|
||||
int32 enable_show_vt_info = 4;
|
||||
}
|
||||
|
||||
// 播放器浮层广告(?)
|
||||
message PlayFloatLayerActivity {
|
||||
//
|
||||
int32 id = 1;
|
||||
//
|
||||
string title = 2;
|
||||
//
|
||||
int32 type = 3;
|
||||
//
|
||||
int32 ad_badge_type = 4;
|
||||
//
|
||||
string link = 5;
|
||||
//
|
||||
string pic_url = 6;
|
||||
//
|
||||
string pic_anima_url = 7;
|
||||
//
|
||||
bilibili.app.viewunite.common.BadgeInfo badge = 8;
|
||||
//
|
||||
int64 show_rate_time = 9;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayStrategy {
|
||||
//
|
||||
repeated string strategies = 1;
|
||||
//
|
||||
int32 recommend_show_strategy = 2;
|
||||
//
|
||||
string auto_play_toast = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message Publish {
|
||||
//
|
||||
string pub_time = 1;
|
||||
//
|
||||
string pub_time_show = 2;
|
||||
//
|
||||
int32 is_started = 3;
|
||||
//
|
||||
int32 is_finish = 4;
|
||||
//
|
||||
int32 weekday = 5;
|
||||
//
|
||||
string release_date_show = 6;
|
||||
//
|
||||
string time_length_show = 7;
|
||||
//
|
||||
int32 unknow_pub_date = 8;
|
||||
//
|
||||
string update_info_desc = 9;
|
||||
}
|
||||
|
||||
//
|
||||
message Reserve {
|
||||
//
|
||||
repeated bilibili.app.viewunite.common.ViewEpisode episodes = 1;
|
||||
//
|
||||
string tip = 2;
|
||||
}
|
||||
|
||||
// 权限相关信息
|
||||
message Rights {
|
||||
//
|
||||
int32 allow_download = 1;
|
||||
//
|
||||
int32 allow_review = 2;
|
||||
//
|
||||
int32 can_watch = 3;
|
||||
//
|
||||
int32 is_cover_show = 4;
|
||||
//
|
||||
string copyright = 5;
|
||||
//
|
||||
string copyright_name = 6;
|
||||
//
|
||||
int32 allow_bp = 7;
|
||||
//
|
||||
int32 area_limit = 8;
|
||||
//
|
||||
int32 is_preview = 9;
|
||||
//
|
||||
int32 ban_area_show = 10;
|
||||
//
|
||||
int32 watch_platform = 11;
|
||||
//
|
||||
int32 allow_bp_rank = 12;
|
||||
//
|
||||
string resource = 13;
|
||||
//
|
||||
int32 forbid_pre = 14;
|
||||
//
|
||||
int32 only_vip_download = 15;
|
||||
//
|
||||
int32 new_allow_download = 16;
|
||||
}
|
||||
|
||||
//
|
||||
message Stat {
|
||||
//
|
||||
string followers = 1;
|
||||
//
|
||||
bilibili.app.viewunite.common.StatInfo play_data = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message UserStatus {
|
||||
//
|
||||
int32 show = 1;
|
||||
//
|
||||
int32 follow = 2;
|
||||
//
|
||||
int32 follow_status = 3;
|
||||
//
|
||||
int32 pay = 4;
|
||||
//
|
||||
int32 sponsor = 5;
|
||||
//
|
||||
int32 vip = 6;
|
||||
// vip 是否被冻结
|
||||
int32 vip_frozen = 7;
|
||||
//
|
||||
WatchProgress watch_progress = 8;
|
||||
}
|
||||
|
||||
//
|
||||
message ViewPgcAny {
|
||||
//
|
||||
uint64 season_id = 1;
|
||||
OgvData ogv_data = 1;
|
||||
//
|
||||
int32 season_type = 2;
|
||||
}
|
||||
map<int64, bilibili.app.viewunite.common.Staff> all_up_info = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message WatchProgress {
|
||||
//
|
||||
int64 last_ep_id = 1;
|
||||
//
|
||||
string last_ep_index = 2;
|
||||
//
|
||||
int64 last_time = 3;
|
||||
}
|
||||
|
||||
@@ -2,9 +2,133 @@ syntax = "proto3";
|
||||
|
||||
package bilibili.app.viewunite.ugcanymodel;
|
||||
|
||||
import "bilibili/app/viewunite/common.proto";
|
||||
|
||||
//
|
||||
message ViewUgcAny {
|
||||
|
||||
message Dislike {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
string subtitle = 2;
|
||||
//
|
||||
repeated DislikeReason reasons = 3;
|
||||
}
|
||||
|
||||
//
|
||||
//
|
||||
message DislikeReason {
|
||||
//
|
||||
int64 id = 1;
|
||||
//
|
||||
int64 mid = 2;
|
||||
//
|
||||
int32 rid = 3;
|
||||
//
|
||||
int64 tag_id = 4;
|
||||
//
|
||||
string name = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message ElecRank {
|
||||
//
|
||||
repeated ElecRankItem list = 1;
|
||||
//
|
||||
int64 count = 2;
|
||||
//
|
||||
string text = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message ElecRankItem {
|
||||
//
|
||||
string avatar = 1;
|
||||
//
|
||||
string nickname = 2;
|
||||
//
|
||||
string message = 3;
|
||||
//
|
||||
int64 mid = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message Premiere {
|
||||
//
|
||||
PremiereState premiere_state = 1;
|
||||
//
|
||||
int64 start_time = 2;
|
||||
//
|
||||
int64 service_time = 3;
|
||||
//
|
||||
int64 room_id = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message PremiereReserve {
|
||||
//
|
||||
int64 reserve_id = 1;
|
||||
//
|
||||
int64 count = 2;
|
||||
//
|
||||
bool is_follow = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message PremiereResource {
|
||||
//
|
||||
Premiere premiere = 1;
|
||||
//
|
||||
PremiereReserve reserve = 2;
|
||||
//
|
||||
PremiereText text = 3;
|
||||
}
|
||||
|
||||
enum PremiereState {
|
||||
//
|
||||
premiere_none = 0;
|
||||
//
|
||||
premiere_before = 1;
|
||||
//
|
||||
premiere_in = 2;
|
||||
//
|
||||
premiere_after = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message PremiereText {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
string subtitle = 2;
|
||||
//
|
||||
string online_text = 3;
|
||||
//
|
||||
string online_icon = 4;
|
||||
//
|
||||
string online_icon_dark = 5;
|
||||
//
|
||||
string intro_title = 6;
|
||||
//
|
||||
string intro_icon = 7;
|
||||
//
|
||||
string guidance_pulldown = 8;
|
||||
//
|
||||
string guidance_entry = 9;
|
||||
//
|
||||
string intro_icon_night = 10;
|
||||
}
|
||||
|
||||
//
|
||||
message ViewUgcAny {
|
||||
//
|
||||
PremiereResource premiere = 1;
|
||||
//
|
||||
Dislike dislike = 2;
|
||||
//
|
||||
string short_link = 3;
|
||||
//
|
||||
string share_subtitle = 4;
|
||||
//
|
||||
repeated bilibili.app.viewunite.common.Page pages = 5;
|
||||
//
|
||||
ElecRank elec_rank = 6;
|
||||
}
|
||||
|
||||
@@ -3,33 +3,82 @@ syntax = "proto3";
|
||||
package bilibili.app.viewunite.v1;
|
||||
|
||||
import "bilibili/app/archive/middleware/v1/preload.proto";
|
||||
|
||||
import "bilibili/app/viewunite/common.proto";
|
||||
import "bilibili/pagination/pagination.proto";
|
||||
import "google/protobuf/any.proto";
|
||||
|
||||
// 统一视频信息接口(7.23启用)
|
||||
// 统一视频信息接口 (7.41.0+)
|
||||
service View {
|
||||
//
|
||||
rpc ArcRefresh(ArcRefreshReq) returns (ArcRefreshReply);
|
||||
// 视频详情页下方推荐
|
||||
rpc RelatesFeed(RelatesFeedReq) returns (RelatesFeedReply);
|
||||
//
|
||||
rpc View(ViewReq) returns (ViewReply);
|
||||
//
|
||||
rpc ViewProgress(ViewProgressReq) returns (ViewProgressReply);
|
||||
}
|
||||
|
||||
// 业务类型
|
||||
enum ArcType {
|
||||
//
|
||||
message ActivityResource {
|
||||
//
|
||||
UNKNOWN = 0;
|
||||
string dark_text_color = 1;
|
||||
//
|
||||
PAGES = 1;
|
||||
string divider_color = 2;
|
||||
//
|
||||
SERIES = 2;
|
||||
string bg_color = 3;
|
||||
//
|
||||
POSITIVE = 3;
|
||||
string selected_bg_color = 4;
|
||||
//
|
||||
SECTION = 4;
|
||||
string text_color = 5;
|
||||
//
|
||||
RELATE = 5;
|
||||
string light_text_color = 6;
|
||||
}
|
||||
|
||||
// 业务信息
|
||||
message Arc {
|
||||
//
|
||||
PUGV = 6;
|
||||
int64 aid = 1;
|
||||
//
|
||||
int64 cid = 2;
|
||||
//
|
||||
int64 duration = 3;
|
||||
//
|
||||
bilibili.app.viewunite.common.Stat stat = 4;
|
||||
//
|
||||
string bvid = 5;
|
||||
//
|
||||
int32 copyright = 6;
|
||||
//
|
||||
Rights right = 7;
|
||||
//
|
||||
string cover = 8;
|
||||
//
|
||||
int64 type_id = 9;
|
||||
//
|
||||
string title = 10;
|
||||
}
|
||||
|
||||
//
|
||||
message ArcRefreshReply {
|
||||
//
|
||||
bilibili.app.viewunite.common.Stat stat = 1;
|
||||
//
|
||||
SimpleReqUser req_user = 2;
|
||||
//
|
||||
SimpleArc arc = 3;
|
||||
//
|
||||
Online online = 4;
|
||||
//
|
||||
LikeConfig like_config = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message ArcRefreshReq {
|
||||
//
|
||||
int64 aid = 1;
|
||||
//
|
||||
string bvid = 2;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -38,26 +87,6 @@ message AttentionCard {
|
||||
repeated ShowTime show_time = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message BadgeType {
|
||||
//
|
||||
string text = 1;
|
||||
//
|
||||
string text_color = 2;
|
||||
//
|
||||
string text_color_night = 3;
|
||||
//
|
||||
string bg_color = 4;
|
||||
//
|
||||
string bg_color_night = 5;
|
||||
//
|
||||
string border_color = 6;
|
||||
//
|
||||
string border_color_night = 7;
|
||||
//
|
||||
int32 bg_style = 8;
|
||||
}
|
||||
|
||||
//
|
||||
message BizFollowVideoParam {
|
||||
//
|
||||
@@ -90,7 +119,6 @@ message BizReserveGameParam {
|
||||
int64 game_id = 1;
|
||||
}
|
||||
|
||||
//
|
||||
enum BizType {
|
||||
//
|
||||
BizTypeNone = 0;
|
||||
@@ -106,6 +134,26 @@ enum BizType {
|
||||
BizTypeReserveGame = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message Button {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
string uri = 2;
|
||||
//
|
||||
string icon = 3;
|
||||
//
|
||||
JumpShowType jump_show_type = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message ChargingPlus {
|
||||
//
|
||||
bool pass = 1;
|
||||
//
|
||||
repeated PlayToast play_toast = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message Chronos {
|
||||
//
|
||||
@@ -126,6 +174,16 @@ message ChronosParam {
|
||||
string service_key = 3;
|
||||
}
|
||||
|
||||
// 推广信息
|
||||
message CM {
|
||||
//
|
||||
google.protobuf.Any cm_under_player = 1;
|
||||
//
|
||||
google.protobuf.Any ads_control = 2;
|
||||
//
|
||||
repeated google.protobuf.Any source_content = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message CommandDm {
|
||||
//
|
||||
@@ -147,7 +205,17 @@ message CommandDm {
|
||||
//
|
||||
string extra = 9;
|
||||
//
|
||||
string id_str = 10;
|
||||
string idstr = 10;
|
||||
}
|
||||
|
||||
// 播放器配置
|
||||
message Config {
|
||||
//
|
||||
Online online = 1;
|
||||
//
|
||||
PlayerIcon player_icon = 2;
|
||||
//
|
||||
StoryEntrance story_entrance = 3;
|
||||
}
|
||||
|
||||
// 视频播放时弹出的卡片
|
||||
@@ -187,13 +255,9 @@ message ContractText {
|
||||
}
|
||||
|
||||
//
|
||||
message Dimension {
|
||||
message Control {
|
||||
//
|
||||
int64 width = 1;
|
||||
//
|
||||
int64 height = 2;
|
||||
//
|
||||
int64 rotate = 3;
|
||||
bool limit = 1;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -206,6 +270,53 @@ message DmResource {
|
||||
repeated OperationCard cards = 3;
|
||||
}
|
||||
|
||||
enum ECode {
|
||||
//
|
||||
CODE_DEFAULT = 0;
|
||||
//
|
||||
CODE_404 = 1;
|
||||
// 青少年限制
|
||||
CODE_TEENAGER = 78301;
|
||||
}
|
||||
|
||||
//
|
||||
message ECodeConfig {
|
||||
//
|
||||
string redirect_url = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message IconData {
|
||||
//
|
||||
string meta_json = 1;
|
||||
//
|
||||
string sprits_img = 2;
|
||||
}
|
||||
|
||||
// 视频介绍 Tab
|
||||
message IntroductionTab {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
repeated bilibili.app.viewunite.common.Module modules = 2;
|
||||
}
|
||||
|
||||
enum JumpShowType {
|
||||
//
|
||||
JST_DEFAULT = 0;
|
||||
//
|
||||
JST_FULLSCREEN = 1;
|
||||
//
|
||||
JST_HALFSCREEN = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message LikeConfig {
|
||||
bilibili.app.viewunite.common.UpLikeImg triple_like = 1;
|
||||
//
|
||||
string like_animation = 2;
|
||||
}
|
||||
|
||||
// 素材详情
|
||||
message Material {
|
||||
//
|
||||
@@ -260,6 +371,12 @@ enum MaterialSource {
|
||||
BIJIAN = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message Online {
|
||||
//
|
||||
bool online_show = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message OperationCard {
|
||||
//
|
||||
@@ -275,13 +392,16 @@ message OperationCard {
|
||||
//
|
||||
OperationCardContent content = 6;
|
||||
//
|
||||
BizFollowVideoParam follow = 7;
|
||||
//
|
||||
BizReserveActivityParam reserve = 8;
|
||||
//
|
||||
BizJumpLinkParam jump = 9;
|
||||
//
|
||||
BizReserveGameParam game = 10;
|
||||
oneof param {
|
||||
//
|
||||
BizFollowVideoParam follow = 7;
|
||||
//
|
||||
BizReserveActivityParam reserve = 8;
|
||||
//
|
||||
BizJumpLinkParam jump = 9;
|
||||
//
|
||||
BizReserveGameParam game = 10;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
@@ -308,6 +428,13 @@ enum PageCategory {
|
||||
ACTIVITY_PAGE = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message PageControl {
|
||||
Control toast_show = 1;
|
||||
Control material_show = 2;
|
||||
Control up_show = 3;
|
||||
}
|
||||
|
||||
// 页面类型
|
||||
enum PageType {
|
||||
// H5页面(Webview)
|
||||
@@ -316,14 +443,43 @@ enum PageType {
|
||||
NA = 1;
|
||||
}
|
||||
|
||||
// 播放策略
|
||||
message PlayStrategy {
|
||||
//
|
||||
message PlayerIcon {
|
||||
//
|
||||
repeated string strategies = 1;
|
||||
string url1 = 1;
|
||||
//
|
||||
int32 recommend_show_strategy = 2;
|
||||
// 自动播放时的提示语
|
||||
string auto_play_toast = 3;
|
||||
string hash1 = 2;
|
||||
//
|
||||
string url2 = 3;
|
||||
//
|
||||
string hash2 = 4;
|
||||
//
|
||||
string drag_left_png = 5;
|
||||
//
|
||||
string middle_png = 6;
|
||||
//
|
||||
string drag_right_png = 7;
|
||||
//
|
||||
IconData drag_data = 8;
|
||||
//
|
||||
IconData nodrag_data = 9;
|
||||
}
|
||||
|
||||
//
|
||||
message PlayToast {
|
||||
//
|
||||
PlayToastEnum business = 1;
|
||||
//
|
||||
string icon_url = 2;
|
||||
//
|
||||
string text = 3;
|
||||
}
|
||||
|
||||
enum PlayToastEnum {
|
||||
//
|
||||
PLAYTOAST_UNKNOWN = 0;
|
||||
//
|
||||
PLAYTOAST_CHARGINGPLUS = 1;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -335,57 +491,93 @@ message PointMaterial {
|
||||
}
|
||||
|
||||
//
|
||||
message Selection {
|
||||
message Relate {
|
||||
//
|
||||
string title = 1;
|
||||
int64 device_type = 1;
|
||||
//
|
||||
repeated SelectionItem item = 2;
|
||||
bilibili.pagination.Pagination pagination = 2;
|
||||
}
|
||||
|
||||
// 视频详情页下方推荐 Reply
|
||||
message RelatesFeedReply {
|
||||
//
|
||||
ArcType arc_type = 3;
|
||||
repeated bilibili.app.viewunite.common.RelateCard relates = 1;
|
||||
//
|
||||
SelectionType selection_type = 4;
|
||||
bilibili.pagination.Pagination pagination = 2;
|
||||
}
|
||||
|
||||
// 视频详情页下方推荐 Req
|
||||
message RelatesFeedReq {
|
||||
//
|
||||
int64 aid = 1;
|
||||
//
|
||||
string bvid = 2;
|
||||
//
|
||||
string from = 3;
|
||||
//
|
||||
string spmid = 4;
|
||||
//
|
||||
string from_spmid = 5;
|
||||
//
|
||||
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 6;
|
||||
//
|
||||
bilibili.pagination.Pagination pagination = 7;
|
||||
//
|
||||
string session_id = 8;
|
||||
//
|
||||
int64 auto_play = 9;
|
||||
//
|
||||
string from_track_id = 10;
|
||||
}
|
||||
|
||||
//
|
||||
message SelectionItem {
|
||||
message ReplyStyle {
|
||||
//
|
||||
uint64 aid = 1;
|
||||
string badge_url = 1;
|
||||
//
|
||||
uint64 cid = 2;
|
||||
string badge_text = 2;
|
||||
//
|
||||
BadgeType badge_type = 4;
|
||||
//
|
||||
string title = 5;
|
||||
//
|
||||
string long_title = 6;
|
||||
//
|
||||
Dimension dimension = 7;
|
||||
int64 badge_type = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message SelectionModule {
|
||||
message ReplyTab {
|
||||
//
|
||||
repeated Selection selection = 1;
|
||||
ReplyStyle reply_style = 1;
|
||||
//
|
||||
repeated SerialSeason serial_season = 2;
|
||||
string title = 2;
|
||||
//
|
||||
PlayStrategy play_strategy = 3;
|
||||
TabControl control = 3;
|
||||
}
|
||||
|
||||
//
|
||||
enum SelectionType {
|
||||
message ReqUser {
|
||||
//
|
||||
LONGTITLE = 0;
|
||||
int32 favorite = 1;
|
||||
//
|
||||
SHORTTITLE = 1;
|
||||
int32 like = 2;
|
||||
//
|
||||
int32 coin = 3;
|
||||
//
|
||||
int32 fav_season = 4;
|
||||
//
|
||||
int32 follow = 5;
|
||||
//
|
||||
int32 dislike = 6;
|
||||
// 头像旁充电按钮
|
||||
Button elec_plus_btn = 7;
|
||||
//
|
||||
ChargingPlus charging_plus = 8;
|
||||
}
|
||||
|
||||
//
|
||||
message SerialSeason {
|
||||
message Rights {
|
||||
//
|
||||
uint32 season_id = 1;
|
||||
bool only_vip_download = 1;
|
||||
//
|
||||
string season_title = 2;
|
||||
bool no_reprint = 2;
|
||||
//
|
||||
bool download = 3;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -400,6 +592,82 @@ message ShowTime {
|
||||
double pos_y = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message SimpleArc {
|
||||
//
|
||||
int32 copyright = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message SimpleReqUser {
|
||||
//
|
||||
int32 favorite = 1;
|
||||
//
|
||||
int32 like = 2;
|
||||
//
|
||||
int32 coin = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message StoryEntrance {
|
||||
//
|
||||
bool arc_play_story = 1;
|
||||
//
|
||||
string story_icon = 2;
|
||||
//
|
||||
bool arc_landscape_story = 3;
|
||||
//
|
||||
string landscape_icon = 4;
|
||||
//
|
||||
bool play_story = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message Tab {
|
||||
//
|
||||
repeated TabModule tab_module = 1;
|
||||
//
|
||||
string tab_bg = 2;
|
||||
//
|
||||
TabControl danmaku_entrance = 3;
|
||||
}
|
||||
|
||||
// 评论区/弹幕 Tab 控制
|
||||
message TabControl {
|
||||
//
|
||||
bool limit = 1;
|
||||
//
|
||||
bool disable = 2;
|
||||
//
|
||||
string disable_click_tip = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message TabModule {
|
||||
//
|
||||
TabType tab_type = 1;
|
||||
//
|
||||
oneof tab {
|
||||
//
|
||||
IntroductionTab introduction = 2;
|
||||
//
|
||||
ReplyTab reply = 3;
|
||||
//
|
||||
bilibili.app.viewunite.common.ActivityTab activity_tab = 4;
|
||||
}
|
||||
}
|
||||
|
||||
enum TabType {
|
||||
//
|
||||
TAB_NONE = 0;
|
||||
// 详情 Tab
|
||||
TAB_INTRODUCTION = 1;
|
||||
// 评论区 Tab
|
||||
TAB_REPLY = 2;
|
||||
// OGV 活动信息 Tab
|
||||
TAB_OGV_ACTIVITY = 3;
|
||||
}
|
||||
|
||||
//
|
||||
enum UnionType {
|
||||
//
|
||||
@@ -478,6 +746,24 @@ message ViewBase {
|
||||
UnionType union_type = 1;
|
||||
//
|
||||
PageType page_type = 2;
|
||||
//
|
||||
PageControl control = 3;
|
||||
//
|
||||
ActivityResource activity_resource = 4;
|
||||
//
|
||||
Config config = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message ViewProgressReply {
|
||||
//
|
||||
VideoGuide video_guide = 1;
|
||||
//
|
||||
Chronos chronos = 2;
|
||||
//
|
||||
VideoShot arc_shot = 3;
|
||||
//
|
||||
DmResource dm = 4;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -495,15 +781,27 @@ message ViewProgressReq {
|
||||
}
|
||||
|
||||
//
|
||||
message ViewProgressReply {
|
||||
message ViewReply {
|
||||
//
|
||||
VideoGuide video_guide = 1;
|
||||
ViewBase view_base = 1;
|
||||
//
|
||||
Chronos chronos = 2;
|
||||
Arc arc = 2;
|
||||
//
|
||||
VideoShot arc_shot = 3;
|
||||
ReqUser req_user = 3;
|
||||
//
|
||||
DmResource dm = 4;
|
||||
bilibili.app.viewunite.common.Owner owner = 4;
|
||||
//
|
||||
Tab tab = 5;
|
||||
//
|
||||
google.protobuf.Any supplement = 6;
|
||||
//
|
||||
CM cm = 7;
|
||||
//
|
||||
ECode ecode = 8;
|
||||
//
|
||||
ECodeConfig ecode_config = 9;
|
||||
//
|
||||
map<string, string> report = 10;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -526,14 +824,12 @@ message ViewReq {
|
||||
string track_id = 8;
|
||||
//
|
||||
map<string, string> extra_content = 9;
|
||||
//
|
||||
string play_mode = 10;
|
||||
//
|
||||
Relate relate = 11;
|
||||
//
|
||||
string biz_extra = 12;
|
||||
//
|
||||
string ad_extra = 13;
|
||||
}
|
||||
|
||||
//
|
||||
message ViewReply {
|
||||
//
|
||||
ViewBase view_base = 1;
|
||||
//
|
||||
SelectionModule selection_module = 3;
|
||||
// 使用 pgcanymodel / ugcanymodel 进行proto any转换成对应业务码结构体
|
||||
google.protobuf.Any supplement = 4;
|
||||
}
|
||||
Reference in New Issue
Block a user