update 【gRPC API】 proto files

This commit is contained in:
社会易姐QwQ
2022-06-22 00:34:19 +08:00
parent ab5518cbb2
commit 3c8dfc6d61
5 changed files with 1630 additions and 1136 deletions

View File

@@ -27,5 +27,7 @@ message Card {
PopularTopEntrance popular_top_entrance = 9;
//
RcmdOneItem rcmd_one_item = 10;
//
SmallCoverV5Ad small_cover_v5_ad = 11;
}
}

View File

@@ -4,6 +4,50 @@ package bilibili.app.card.v1;
import "bilibili/app/card/v1/ad.proto";
//
message Args {
//
int32 type = 1;
//
int64 up_id = 2;
//
string up_name = 3;
//
int32 rid = 4;
//
string rname = 5;
//
int64 tid = 6;
//
string tname = 7;
//
string track_id = 8;
//
string state = 9;
//
int32 converge_type = 10;
//
int64 aid = 11;
}
//
message Avatar {
//
string cover = 1;
//
string text = 2;
//
string uri = 3;
//
int32 type = 4;
//
string event = 5;
//
string event_v2 = 6;
//
int32 defalut_cover = 7;
}
// 条目基本信息
message Base {
// 卡片类型
@@ -44,6 +88,8 @@ message Base {
Button desc_button = 17;
// 三点v4
ThreePointV4 three_point_v4 = 18;
//
UpArgs up_args = 19;
}
// 按钮信息
@@ -66,16 +112,6 @@ message Button {
Relation relation = 8;
}
//
message ThreePoint {
//
repeated DislikeReason dislike_reasons = 1;
//
repeated DislikeReason feedbacks = 2;
//稍后再看
int32 watch_later = 3;
}
//
message DislikeReason {
//
@@ -85,29 +121,27 @@ message DislikeReason {
}
//
message Args {
message LikeButton {
//
int32 type = 1;
int64 Aid = 1;
//
int64 up_id = 2;
int32 count = 2;
//
string up_name = 3;
bool show_count = 3;
//
int32 rid = 4;
string event = 4;
//
string rname = 5;
int32 selected = 5;
//
int64 tid = 6;
string event_v2 = 6;
}
//
message Mask {
//
string tname = 7;
Avatar avatar = 1;
//
string track_id = 8;
//
string state = 9;
//
int32 converge_type = 10;
//
int64 aid = 11;
Button button = 2;
}
//
@@ -134,30 +168,89 @@ message PlayerArgs {
int64 season_id = 11;
}
//
message Mask {
// 标签框信息
message ReasonStyle {
// 文案
string text = 1;
// 文字颜色
string text_color = 2;
// 背景色
string bg_color = 3;
// 边框色
string border_color = 4;
// 图标url
string icon_url = 5;
// 文字颜色-夜间
string text_color_night = 6;
// 背景色-夜间
string bg_color_night = 7;
// 边框色-夜间
string border_color_night = 8;
// 图标url-夜间
string icon_night_url = 9;
// 背景风格id
// 1:无背景 2:有背景
int32 bg_style = 10;
//
Avatar avatar = 1;
string uri = 11;
//
Button button = 2;
string icon_bg_url = 12;
//
string event = 13;
//
string event_v2 = 14;
//
int32 right_icon_type = 15;
//
string left_icon_type = 16;
}
// 关系信息
message Relation {
// 关系状态
int32 status = 1;
// 是否关注
int32 is_follow = 2;
// 是否粉丝
int32 is_followed = 3;
}
// 分享面板信息
message SharePlane {
// 标题
string title = 1;
// 副标贴文案
string share_subtitle = 2;
// 备注
string desc = 3;
// 封面url
string cover = 4;
// 稿件avid
int64 aid = 5;
// 稿件bvid
string bvid = 6;
// 允许分享方式
map<string,bool> share_to = 7;
// UP主昵称
string author = 8;
// UP主mid
int64 author_id = 9;
// 短连接
string short_link = 10;
// 播放次数文案
string play_number = 11;
//
int64 first_cid = 12;
}
//
message Avatar {
message ThreePoint {
//
string cover = 1;
repeated DislikeReason dislike_reasons = 1;
//
string text = 2;
//
string uri = 3;
//
int32 type = 4;
//
string event = 5;
//
string event_v2 = 6;
//
int32 defalut_cover = 7;
repeated DislikeReason feedbacks = 2;
//稍后再看
int32 watch_later = 3;
}
//
@@ -208,93 +301,6 @@ message ThreePointV4 {
WatchLater watch_later = 2;
}
// 分享面板信息
message SharePlane {
// 标题
string title = 1;
// 副标贴文案
string share_subtitle = 2;
// 备注
string desc = 3;
// 封面url
string cover = 4;
// 稿件avid
int64 aid = 5;
// 稿件bvid
string bvid = 6;
// 允许分享方式
map<string,bool> share_to = 7;
// UP主昵称
string author = 8;
// UP主mid
int64 author_id = 9;
// 短连接
string short_link = 10;
// 播放次数文案
string play_number = 11;
}
// 稍后再看信息
message WatchLater {
// 稿件avid
int64 aid = 1;
// 稿件bvid
string bvid = 2;
}
// 标签框信息
message ReasonStyle {
// 文案
string text = 1;
// 文字颜色
string text_color = 2;
// 背景色
string bg_color = 3;
// 边框色
string border_color = 4;
// 图标url
string icon_url = 5;
// 文字颜色-夜间
string text_color_night = 6;
// 背景色-夜间
string bg_color_night = 7;
// 边框色-夜间
string border_color_night = 8;
// 图标url-夜间
string icon_night_url = 9;
// 背景风格id
// 1:无背景 2:有背景
int32 bg_style = 10;
//
string uri = 11;
//
string icon_bg_url = 12;
//
string event = 13;
//
string event_v2 = 14;
//
int32 right_icon_type = 15;
//
string left_icon_type = 16;
}
//
message LikeButton {
//
int64 Aid = 1;
//
int32 count = 2;
//
bool show_count = 3;
//
string event = 4;
//
int32 selected = 5;
//
string event_v2 = 6;
}
//
message Up {
//
@@ -313,12 +319,22 @@ message Up {
string cooperation = 7;
}
// 关系信息
message Relation {
// 关系状态
int32 status = 1;
// 是否关注
int32 is_follow = 2;
// 是否粉丝
int32 is_followed = 3;
//
message UpArgs {
//
int64 up_id = 1;
//
string up_name = 2;
//
string up_face = 3;
//
int64 selected = 4;
}
// 稍后再看信息
message WatchLater {
// 稿件avid
int64 aid = 1;
// 稿件bvid
string bvid = 2;
}

View File

@@ -30,6 +30,42 @@ message SmallCoverV5 {
int32 right_icon_2 = 11;
// 左上角角标
ReasonStyle left_corner_mark_style = 12;
//
string cover_right_text_content_description = 13;
//
string right_desc1_content_description = 14;
}
//
message SmallCoverV5Ad {
//
Base base = 1;
//
string cover_gif = 2;
//
Up up = 3;
//
string cover_right_text1 = 4;
//
string right_desc1 = 5;
//
string right_desc2 = 6;
//
ReasonStyle rcmd_reason_style = 7;
//
HotwordEntrance hotword_entrance = 8;
//
ReasonStyle corner_mark_style = 9;
//
int32 right_icon1 = 10;
//
int32 right_icon2 = 11;
//
ReasonStyle left_corner_mark_style = 12;
//
string cover_right_text_content_description = 13;
//
string right_desc1_content_description = 14;
}
//
@@ -157,6 +193,10 @@ message SmallCoverRcmdItem {
int32 rightIcon1 = 10;
// 右侧文案2图标id
int32 rightIcon2 = 11;
//
string cover_right_text_content_description = 12;
//
string right_desc1_content_description = 13;
}
//
@@ -310,4 +350,4 @@ message Bubble {
int32 version = 2;
// 起始时间
int64 stime = 3;
}
}