更新部分proto结构体文件

This commit is contained in:
社会易姐QwQ
2021-06-14 01:33:41 +08:00
parent 3acd3e2167
commit 396a571570
21 changed files with 6664 additions and 5424 deletions

View File

@@ -1,961 +0,0 @@
syntax = "proto3";
package bilibili.app.card.v1;
//卡片信息
message Card {
oneof item {
//小封面条目
SmallCoverV5 smallCoverV5 = 1;
//
LargeCoverV1 largeCoverV1 = 2;
//
ThreeItemAllV2 threeItemAllV2 = 3;
//
ThreeItemV1 threeItemV1 = 4;
//
HotTopic hotTopic = 5;
//
DynamicHot dynamicHot = 6;
//
MiddleCoverV3 middleCoverV3 = 7;
//
LargeCoverV4 largeCoverV4 = 8;
//热门列表顶部按钮
PopularTopEntrance popularTopEntrance = 9;
//
RcmdOneItem rcmdOneItem = 10;
}
}
//小封面条目
message SmallCoverV5 {
//条目基本信息
Base base = 1;
//
string coverGif = 2;
//
Up up = 3;
//封面右下角标文案(时长)
string coverRightText1 = 4;
//右侧文案1UP主昵称
string rightDesc1 = 5;
//右侧文案2播放量 时间)
string rightDesc2 = 6;
//右侧推荐原因标签框
ReasonStyle rcmdReasonStyle = 7;
//
HotwordEntrance hotwordEntrance = 8;
//
ReasonStyle cornerMarkStyle = 9;
//右侧文案1图标id
int32 rightIcon1 = 10;
//右侧文案2图标id
int32 rightIcon2 = 11;
//
ReasonStyle leftCornerMarkStyle = 12;
}
//
message LargeCoverV1 {
//条目基本信息
Base base = 1;
//
string coverGif = 2;
//
Avatar avatar = 3;
//
string coverLeftText1 = 4;
//
string coverLeftText2 = 5;
//
string coverLeftText3 = 6;
//
string coverBadge = 7;
//
string topRcmdReason = 8;
//
string bottomRcmdReason = 9;
//
string desc = 10;
//
int32 officialIcon = 11;
//
int32 canPlay = 12;
//
ReasonStyle topRcmdReasonStyle = 13;
//
ReasonStyle bottomRcmdReasonStyle = 14;
//
ReasonStyle rcmdReasonStyleV2 = 15;
//
ReasonStyle leftCoverBadgeStyle = 16;
//
ReasonStyle rightCoverBadgeStyle = 17;
//
string coverBadge2 = 18;
//
LikeButton likeButton = 19;
//
int32 titleSingleLine = 20;
//
string coverRightText = 21;
}
//
message ThreeItemAllV2 {
//条目基本信息
Base base = 1;
//
ReasonStyle topRcmdReasonStyle = 2;
//
repeated TwoItemHV1Item item = 3;
}
//
message ThreeItemV1 {
//条目基本信息
Base base = 1;
//
int32 titleIcon = 2;
//
string moreUri = 3;
//
string moreText = 4;
//
repeated ThreeItemV1Item items = 5;
}
//
message HotTopic {
//条目基本信息
Base base = 1;
//
string desc = 2;
//
repeated HotTopicItem items = 3;
}
//
message DynamicHot {
//条目基本信息
Base base = 1;
//
string topLeftTitle = 2;
//
string desc1 = 3;
//
string desc2 = 4;
//
string moreUri = 5;
//
string moreText = 6;
//
repeated string covers = 7;
//
string coverRightText = 8;
//
ReasonStyle topRcmdReasonStyle = 9;
}
//
message MiddleCoverV3 {
//条目基本信息
Base base = 1;
//
string desc1 = 2;
//
string desc2 = 3;
//
ReasonStyle coverBadgeStyle = 4;
}
//
message LargeCoverV4 {
//条目基本信息
Base base = 1;
//
string coverLeftText1 = 2;
//
string coverLeftText2 = 3;
//
string coverLeftText3 = 4;
//
string coverBadge = 5;
//
int32 canPlay = 6;
//
Up up = 7;
//
string shortLink = 8;
//
string shareSubtitle = 9;
//
string playNumber = 10;
//
string bvid = 11;
//
string subParam = 12;
}
//热门列表顶部按钮
message PopularTopEntrance {
//条目基本信息
Base base = 1;
//按钮项
repeated EntranceItem items = 2;
}
//推荐
message RcmdOneItem {
//条目基本信息
Base base = 1;
//标签框信息
ReasonStyle topRcmdReasonStyle = 2;
//小封面推荐内容信息
SmallCoverRcmdItem item = 3;
}
//
message AdInfo {
//
int64 creativeId = 1;
//
int32 creativeType = 2;
//
int32 cardType = 3;
//
CreativeContent creativeContent = 4;
//
string adCb = 5;
//
int64 resource = 6;
//
int32 source = 7;
//
string requestId = 8;
//
bool isAd = 9;
//
int64 cmMark = 10;
//
int32 index = 11;
//
bool isAdLoc = 12;
//
int32 cardIndex = 13;
//
string clientIp = 14;
//
bytes extra = 15;
//
int32 creativeStyle = 16;
}
//
message Args {
//
int32 type = 1;
//
int64 upId = 2;
//
string upName = 3;
//
int32 rid = 4;
//
string rname = 5;
//
int64 tid = 6;
//
string tname = 7;
//
string trackId = 8;
//
string state = 9;
//
int32 convergeType = 10;
//
int64 aid = 11;
}
//
message Avatar {
//
string cover = 1;
//
string text = 2;
//
string uri = 3;
//
int32 type = 4;
//
string event = 5;
//
string eventV2 = 6;
//
int32 defalutCover = 7;
}
//条目基本信息
message Base {
//卡片类型
string cardType = 1;
//卡片跳转类型?
string cardGoto = 2;
//跳转类型
//av:视频稿件 mid:用户空间
string goto = 3;
//目标参数
string param = 4;
//封面url
string cover = 5;
//标题
string title = 6;
//跳转uri
string uri = 7;
//
ThreePoint threePoint = 8;
//
Args args = 9;
//
PlayerArgs playerArgs = 10;
//条目排位序号
int64 idx = 11;
//
AdInfo adInfo = 12;
//
Mask mask = 13;
//来源标识
//recommend:推荐 operation:管理?
string fromType = 14;
//
repeated ThreePointV2 threePointV2 = 15;
//
repeated ThreePointV3 threePointV3 = 16;
//
Button descButton = 17;
//三点v4
ThreePointV4 threePointV4 = 18;
}
//气泡信息
message Bubble {
//文案
string bubbleContent = 1;
//版本
int32 version = 2;
//起始时间
int64 stime = 3;
}
//按钮信息
message Button {
//文案
string text = 1;
//参数
string param = 2;
//
string uri = 3;
//事件
string event = 4;
//
int32 selected = 5;
//类型
//2:
int32 type = 6;
//事件v2
string eventV2 = 7;
//关系信息
Relation relation = 8;
}
//
message CreativeContent {
//
string title = 1;
//
string description = 2;
//
int64 videoId = 3;
//
string username = 4;
//
string imageUrl = 5;
//
string imageMd5 = 6;
//
string logUrl = 7;
//
string logMd5 = 8;
//
string url = 9;
//
string clickUrl = 10;
//
string showUrl = 11;
}
//
message DislikeReason {
//
int64 id = 1;
//
string name = 2;
}
//热门列表按钮信息
message EntranceItem {
//跳转类型
string goto = 1;
//图标url
string icon = 2;
//标题
string title = 3;
//入口模块id
string moduleId = 4;
//跳转uri
string uri = 5;
//入口id
int64 entranceId = 6;
//气泡信息
Bubble bubble = 7;
//入口类型?
int32 entranceType = 8;
}
//
message HotTopicItem {
//
string cover = 1;
//
string uri = 2;
//
string param = 3;
//
string name = 4;
}
//
message HotwordEntrance {
//
int64 hotwordId = 1;
//
string hotText = 2;
//
string h5Url = 3;
//
string icon = 4;
}
//
message LikeButton {
//
int64 aid = 1;
//
int32 count = 2;
//
bool showCount = 3;
//
string event = 4;
//
int32 selected = 5;
//
string eventV2 = 6;
}
//
message Mask {
//
Avatar avatar = 1;
//
Button button = 2;
}
//
message PlayerArgs {
//
int32 isLive = 1;
//
int64 aid = 2;
//
int64 cid = 3;
//
int32 subType = 4;
//
int64 roomId = 5;
//
int64 epId = 7;
//
int32 isPreview = 8;
//
string type = 9;
//
int64 duration = 10;
//
int64 seasonId = 11;
}
//标签框信息
message ReasonStyle {
//文案
string text = 1;
//文字颜色
string textColor = 2;
//背景色
string bgColor = 3;
//边框色
string borderColor = 4;
//图标url
string iconUrl = 5;
//文字颜色-夜间
string textColorNight = 6;
//背景色-夜间
string bgColorNight = 7;
//边框色-夜间
string borderColorNight = 8;
//图标url-夜间
string iconNightUrl = 9;
//背景风格id
//1:无背景 2:有背景
int32 bgStyle = 10;
//
string uri = 11;
//
string iconBgUrl = 12;
//
string event = 13;
//
string eventV2 = 14;
//
int32 rightIconType = 15;
//
string leftIconType = 16;
}
//关系信息
message Relation {
//关系状态
int32 status = 1;
//是否关注
int32 isFollow = 2;
//是否粉丝
int32 isFollowed = 3;
}
//分享面板信息
message SharePlane {
//标题
string title = 1;
//副标贴文案(观看次数)
string shareSubtitle = 2;
//备注
string desc = 3;
//封面url
string cover = 4;
//稿件avid
int64 aid = 5;
//稿件bvid
string bvid = 6;
//允许分享方式
map<string,bool> shareTo = 7;
//UP主昵称
string author = 8;
//UP主UID
int64 authorId = 9;
//短连接
string shortLink = 10;
//播放次数文案
string playNumber = 11;
}
//小封面推荐内容信息
message SmallCoverRcmdItem {
//标题
string title = 1;
//封面url
string cover = 2;
//跳转uri
string uri = 3;
//参数
string param = 4;
//跳转类型
//av:视频稿件
string goto = 5;
//封面右下角标文案(时长)
string coverRightText1 = 6;
//右侧文案1UP主昵称
string rightDesc1 = 7;
//右侧文案2播放量 时间)
string rightDesc2 = 8;
//
string coverGif = 9;
//右侧文案1图标id
int32 rightIcon1 = 10;
//右侧文案2图标id
int32 rightIcon2 = 11;
}
//
message ThreeItemV1Item {
//条目基本信息
Base base = 1;
//
string coverLeftText = 2;
//
int32 coverLeftIcon = 3;
//
string desc1 = 4;
//
string desc2 = 5;
//
string badge = 6;
}
//
message ThreePoint {
//
repeated DislikeReason dislikeReasons = 1;
//
repeated DislikeReason feedbacks = 2;
//稍后再看
int32 watchLater = 3;
}
//
message ThreePointV2 {
//
string title = 1;
//
string subtitle = 2;
//
repeated DislikeReason reasons = 3;
//
string type = 4;
//
int64 id = 5;
}
//
message ThreePointV3 {
//
string title = 1;
//
string selectedTitle = 2;
//
string subtitle = 3;
//
repeated DislikeReason reasons = 4;
//
string type = 5;
//
int64 id = 6;
//
int32 selected = 7;
//
string icon = 8;
//
string selectedIcon = 9;
//
string url = 10;
//
int32 defaultId = 11;
}
//三点v4
message ThreePointV4 {
//分享面板信息
SharePlane sharePlane = 1;
//稍后再看
WatchLater watchLater = 2;
}
//
message TwoItemHV1Item {
//
string title = 1;
//
string cover = 2;
//
string uri = 3;
//
string param = 4;
//
Args args = 5;
//
string goto = 6;
//
string coverLeftText1 = 7;
//
int32 coverLeftIcon1 = 8;
//
string coverRightText = 9;
}
//
message Up {
//
int64 id = 1;
//
string name = 2;
//
string desc = 3;
//
Avatar avatar = 4;
//
int32 officialIcon = 5;
//
Button descButton = 6;
//
string cooperation = 8;
}
//稍后再看信息
message WatchLater {
//稿件avid
int64 aid = 1;
//稿件bvid
string bvid = 2;
}

View File

@@ -0,0 +1,65 @@
syntax = "proto3";
package bilibili.app.card.v1;
//
message AdInfo {
//
int64 creative_id = 1;
//
int32 creative_type = 2;
//
int32 card_type = 3;
//
CreativeContent creative_content = 4;
//
string ad_cb = 5;
//
int64 resource = 6;
//
int32 source = 7;
//
string request_id = 8;
//
bool is_ad = 9;
//
int64 cm_mark = 10;
//
int32 index = 11;
//
bool is_ad_loc = 12;
//
int32 card_index = 13;
//
string client_ip = 14;
//
bytes extra = 15;
//
int32 creative_style = 16;
}
//
message CreativeContent {
//
string title = 1;
//
string description = 2;
//
int64 video_id = 3;
//
string username = 4;
//
string image_url = 5;
//
string image_md5 = 6;
//
string log_url = 7;
//
string log_md5 = 8;
//
string url = 9;
//
string click_url = 10;
//
string show_url = 11;
}

View File

@@ -0,0 +1,31 @@
syntax = "proto3";
package bilibili.app.card.v1;
import "bilibili/app/card/v1/single.proto";
// 卡片信息
message Card {
oneof item {
// 小封面条目
SmallCoverV5 smallCoverV5 = 1;
//
LargeCoverV1 largeCoverV1 = 2;
//
ThreeItemAllV2 threeItemAllV2 = 3;
//
ThreeItemV1 threeItemV1 = 4;
//
HotTopic hotTopic = 5;
//
DynamicHot dynamicHot = 6;
//
MiddleCoverV3 middleCoverV3 = 7;
//
LargeCoverV4 largeCoverV4 = 8;
// 热门列表顶部按钮
PopularTopEntrance popularTopEntrance = 9;
//
RcmdOneItem rcmdOneItem = 10;
}
}

View File

@@ -0,0 +1,324 @@
syntax = "proto3";
package bilibili.app.card.v1;
import "bilibili/app/card/v1/ad.proto";
// 条目基本信息
message Base {
// 卡片类型
string cardType = 1;
// 卡片跳转类型?
string cardGoto = 2;
// 跳转类型
// av:视频稿件 mid:用户空间
string goto = 3;
// 目标参数
string param = 4;
// 封面url
string cover = 5;
// 标题
string title = 6;
// 跳转uri
string uri = 7;
//
ThreePoint threePoint = 8;
//
Args args = 9;
//
PlayerArgs playerArgs = 10;
// 条目排位序号
int64 idx = 11;
//
AdInfo adInfo = 12;
//
Mask mask = 13;
//来源标识
// recommend:推荐 operation:管理?
string fromType = 14;
//
repeated ThreePointV2 threePointV2 = 15;
//
repeated ThreePointV3 threePointV3 = 16;
//
Button descButton = 17;
// 三点v4
ThreePointV4 threePointV4 = 18;
}
// 按钮信息
message Button {
// 文案
string text = 1;
// 参数
string param = 2;
//
string uri = 3;
// 事件
string event = 4;
//
int32 selected = 5;
// 类型
int32 type = 6;
// 事件v2
string eventV2 = 7;
// 关系信息
Relation relation = 8;
}
//
message ThreePoint {
//
repeated DislikeReason dislikeReasons = 1;
//
repeated DislikeReason feedbacks = 2;
//稍后再看
int32 watchLater = 3;
}
//
message DislikeReason {
//
int64 id = 1;
//
string name = 2;
}
//
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 PlayerArgs {
//
int32 is_live = 1;
//
int64 aid = 2;
//
int64 cid = 3;
//
int32 sub_type = 4;
//
int64 room_id = 5;
//
int64 ep_id = 7;
//
int32 is_preview = 8;
//
string type = 9;
//
int64 duration = 10;
//
int64 season_id = 11;
}
//
message Mask {
//
Avatar avatar = 1;
//
Button button = 2;
}
//
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 ThreePointV2 {
//
string title = 1;
//
string subtitle = 2;
//
repeated DislikeReason reasons = 3;
//
string type = 4;
//
int64 id = 5;
}
//
message ThreePointV3 {
//
string title = 1;
//
string selected_title = 2;
//
string subtitle = 3;
//
repeated DislikeReason reasons = 4;
//
string type = 5;
//
int64 id = 6;
//
int32 selected = 7;
//
string icon = 8;
//
string selected_icon = 9;
//
string url = 10;
//
int32 default_id = 11;
}
// 三点v4
message ThreePointV4 {
// 分享面板信息
SharePlane share_plane = 1;
// 稍后再看
WatchLater watch_later = 2;
}
// 分享面板信息
message SharePlane {
// 标题
string title = 1;
// 副标贴文案
string shareSubtitle = 2;
// 备注
string desc = 3;
// 封面url
string cover = 4;
// 稿件avid
int64 aid = 5;
// 稿件bvid
string bvid = 6;
// 允许分享方式
map<string,bool> shareTo = 7;
// UP主昵称
string author = 8;
// UP主mid
int64 authorId = 9;
// 短连接
string shortLink = 10;
// 播放次数文案
string playNumber = 11;
}
// 稍后再看信息
message WatchLater {
// 稿件avid
int64 aid = 1;
// 稿件bvid
string bvid = 2;
}
// 标签框信息
message ReasonStyle {
// 文案
string text = 1;
// 文字颜色
string textColor = 2;
// 背景色
string bgColor = 3;
// 边框色
string borderColor = 4;
// 图标url
string iconUrl = 5;
// 文字颜色-夜间
string textColorNight = 6;
// 背景色-夜间
string bgColorNight = 7;
// 边框色-夜间
string borderColorNight = 8;
// 图标url-夜间
string iconNightUrl = 9;
// 背景风格id
// 1:无背景 2:有背景
int32 bgStyle = 10;
//
string uri = 11;
//
string iconBgUrl = 12;
//
string event = 13;
//
string eventV2 = 14;
//
int32 rightIconType = 15;
//
string leftIconType = 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 {
//
int64 id = 1;
//
string name = 2;
//
string desc = 3;
//
Avatar avatar = 4;
//
int32 official_icon = 5;
//
Button desc_button = 6;
//
string cooperation = 7;
}
// 关系信息
message Relation {
// 关系状态
int32 status = 1;
// 是否关注
int32 isFollow = 2;
// 是否粉丝
int32 isFollowed = 3;
}

View File

@@ -0,0 +1,416 @@
syntax = "proto3";
package bilibili.app.card.v1;
import "bilibili/app/card/v1/common.proto";
//
message DoubleCards {
oneof Card {
//
SmallCoverV2 small_cover_v2 = 1;
//
OnePicV2 one_pic_v2 = 2;
//
ThreePicV2 three_pic_v2 = 3;
}
}
//
message SmallCoverV2 {
//
Base base = 1;
//
string cover_gif = 2;
//
int32 cover_blur = 3;
//
string cover_left_text_1 = 4;
//
int32 cover_left_icon_1 = 5;
//
string cover_left_text_2 = 6;
//
int32 cover_left_icon_2 = 7;
//
string cover_right_text = 8;
//
int32 cover_right_icon = 9;
//
string cover_right_background_color = 10;
//
string subtitle = 11;
//
string badge = 12;
//
string rcmd_reason = 13;
//
string desc = 14;
//
Avatar avatar = 15;
//
int32 official_icon = 16;
//
int32 can_play = 17;
//
ReasonStyle rcmd_reason_style = 18;
//
ReasonStyle rcmd_reason_style_v2 = 19;
//
LikeButton like_button = 20;
}
//
message SmallCoverV3 {
//
Base base = 1;
//
Avatar avatar = 2;
//
string cover_left_text = 3;
//
Button cover_right_button = 4;
//
string rcmd_reason = 5;
//
string desc = 6;
//
int32 official_icon = 7;
//
int32 can_play = 8;
//
ReasonStyle rcmd_reason_style = 9;
}
//
message MiddleCoverV2 {
//
Base base = 1;
//
int32 ratio = 2;
//
string desc = 3;
//
string badge = 4;
}
//
message LargeCoverV2 {
//
Base base = 1;
//
Avatar avatar = 2;
//
string badge = 3;
//
Button cover_right_button = 4;
//
string cover_left_text_1 = 5;
//
int32 cover_left_icon_1 = 6;
//
string cover_left_text_2 = 7;
//
int32 cover_left_icon_2 = 8;
//
string rcmd_reason = 9;
//
int32 official_icon = 10;
//
int32 can_play = 11;
//
ReasonStyle rcmd_reason_style = 12;
//
int32 show_top = 13;
//
int32 show_bottom = 14;
}
//
message ThreeItemV2 {
//
Base base = 1;
//
int32 title_icon = 2;
//
string more_uri = 3;
//
string more_text = 4;
//
repeated ThreeItemV2Item items = 5;
}
//
message ThreeItemV2Item {
//
Base base = 1;
//
int32 cover_left_icon = 2;
//
string desc_text_1 = 3;
//
int32 desc_icon_1 = 4;
//
string desc_text_2 = 5;
//
int32 desc_icon_2 = 6;
//
string badge = 7;
}
//
message SmallCoverV4 {
//
Base base = 1;
//
string cover_badge = 2;
//
string desc = 3;
//
string title_right_text = 4;
//
int32 title_right_pic = 5;
}
//
message TwoItemV2 {
//
Base base = 1;
//
repeated TwoItemV2Item items = 2;
}
message TwoItemV2Item {
//
Base base = 1;
//
string badge = 2;
//
string cover_left_text_1 = 3;
//
int32 cover_left_icon_1 = 4;
}
//
message MultiItem {
//
Base base = 1;
//
string more_uri = 2;
//
string more_text = 3;
//
repeated DoubleCards items = 4;
}
//
message ThreePicV2 {
//
Base base = 1;
//
string left_cover = 2;
//
string right_cover_1 = 3;
//
string right_cover_2 = 4;
//
string cover_left_text_1 = 5;
//
int32 cover_left_icon_1 = 6;
//
string cover_left_text_2 = 7;
//
int32 cover_left_icon_2 = 8;
//
string cover_right_text = 9;
//
int32 cover_right_icon = 10;
//
string cover_right_background_color = 11;
//
string badge = 12;
//
string rcmd_reason = 13;
//
string desc = 14;
//
Avatar avatar = 15;
//
ReasonStyle rcmd_reason_style = 16;
}
//
message OnePicV2 {
//
Base base = 1;
//
int32 cover_left_icon_1 = 2;
//
string cover_left_text_2 = 3;
//
string cover_right_text = 4;
//
int32 cover_right_icon = 5;
//
string cover_right_background_color = 6;
//
string badge = 7;
//
string rcmd_reason = 8;
//
Avatar avatar = 9;
//
ReasonStyle rcmd_reason_style = 10;
}
//
message LargeCoverV3 {
//
Base base = 1;
//
string cover_gif = 2;
//
Avatar avatar = 3;
//
ReasonStyle top_rcmd_reason_style = 4;
//
ReasonStyle bottom_rcmd_reason_style = 5;
//
string cover_left_text_1 = 6;
//
int32 cover_left_icon_1 = 7;
//
string cover_left_text_2 = 8;
//
int32 cover_left_icon_2 = 9;
//
string cover_right_text = 10;
//
string desc = 11;
//
int32 official_icon = 12;
}
//
message ThreePicV3 {
//
Base base = 1;
//
string left_cover = 2;
//
string right_cover_1 = 3;
//
string right_cover_2 = 4;
//
string cover_left_text_1 = 5;
//
int32 cover_left_icon_1 = 6;
//
string cover_left_text_2 = 7;
//
int32 cover_left_icon_2 = 8;
//
string cover_right_text = 9;
//
int32 cover_right_icon = 10;
//
string cover_right_background_color = 11;
//
string badge = 12;
//
ReasonStyle rcmd_reason_style = 13;
}
//
message OnePicV3 {
//
Base base = 1;
//
string cover_left_text_1 = 2;
//
int32 cover_left_icon_1 = 3;
//
string cover_right_text = 4;
//
int32 cover_right_icon = 5;
//
string cover_right_background_color = 6;
//
string badge = 7;
//
ReasonStyle rcmd_reason_style = 8;
}
//
message SmallCoverV7 {
//
Base base = 1;
//
string desc = 2;
}
//
message SmallCoverV9 {
//
Base base = 1;
//
string cover_left_text_1 = 2;
//
int32 cover_left_icon_1 = 3;
//
string cover_left_text_2 = 4;
//
int32 cover_left_icon_2 = 5;
//
string cover_right_text = 6;
//
int32 cover_right_icon = 7;
//
int32 can_play = 8;
//
ReasonStyle rcmd_reason_style = 9;
//
Up up = 10;
//
ReasonStyle left_cover_badge_style = 11;
//
ReasonStyle left_bottom_rcmd_reason_style = 12;
}
//
message SmallCoverConvergeV2 {
//
Base base = 1;
//
string cover_left_text_1 = 2;
//
int32 cover_left_icon_1 = 3;
//
string cover_left_text_2 = 4;
//
int32 cover_left_icon_2 = 5;
//
string cover_right_text = 6;
//
string cover_right_top_text = 7;
//
ReasonStyle rcmd_reason_style = 8;
//
ReasonStyle rcmd_reason_style_v2 = 9;
}
//
message SmallChannelSpecial {
//
Base base = 1;
//
string bg_cover = 2;
//
string desc_1 = 3;
//
string desc_2 = 4;
//
string badge = 5;
//
ReasonStyle rcmd_reason_style_2 = 6;
}

View File

@@ -0,0 +1,313 @@
syntax = "proto3";
package bilibili.app.card.v1;
import "bilibili/app/card/v1/common.proto";
//
message SmallCoverV5 {
// 条目基本信息
Base base = 1;
//
string cover_gif = 2;
//
Up up = 3;
// 封面右下角标文案
string cover_right_text_1 = 4;
// 右侧文案1
string right_desc_1 = 5;
// 右侧文案2
string right_desc_2 = 6;
// 右侧推荐原因标签框
ReasonStyle rcmd_reason_style = 7;
//
HotwordEntrance hotword_entrance = 8;
// 直播小卡的角标
ReasonStyle corner_mark_style = 9;
// 右侧文案1图标id
int32 right_icon_1 = 10;
// 右侧文案2图标id
int32 right_icon_2 = 11;
// 左上角角标
ReasonStyle left_corner_mark_style = 12;
}
//
message HotwordEntrance {
//
int64 hotword_id = 1;
//
string hot_text = 2;
//
string h5_url = 3;
//
string icon = 4;
}
//
message LargeCoverV1 {
// 条目基本信息
Base base = 1;
//
string cover_gif = 2;
//
Avatar avatar = 3;
//
string cover_left_text_1 = 4;
//
string cover_left_text_2 = 5;
//
string cover_left_text_3 = 6;
//
string cover_badge = 7;
//
string top_rcmd_reason = 8;
//
string bottom_rcmd_reason = 9;
//
string desc = 10;
//
int32 official_icon = 11;
//
int32 can_play = 12;
//
ReasonStyle top_rcmd_reason_style = 13;
//
ReasonStyle bottom_rcmd_reason_style = 14;
//
ReasonStyle rcmd_reason_style_v2 = 15;
//
ReasonStyle left_cover_badge_style = 16;
//
ReasonStyle right_cover_badge_style = 17;
//
string cover_badge_2 = 18;
//
LikeButton like_button = 19;
//
int32 title_single_line = 20;
//
string cover_right_text = 21;
}
//
message ThreeItemAllV2 {
// 条目基本信息
Base base = 1;
//
ReasonStyle top_rcmd_reason_style = 2;
//
repeated TwoItemHV1Item item = 3;
}
//
message TwoItemHV1Item {
//
string title = 1;
//
string cover = 2;
//
string uri = 3;
//
string param = 4;
//
Args args = 5;
//
string goto = 6;
//
string cover_left_text_1 = 7;
//
int32 cover_left_icon_1 = 8;
//
string cover_right_text = 9;
}
// 推荐
message RcmdOneItem {
// 条目基本信息
Base base = 1;
// 标签框信息
ReasonStyle topRcmdReasonStyle = 2;
// 小封面推荐内容信息
SmallCoverRcmdItem item = 3;
}
// 小封面推荐内容信息
message SmallCoverRcmdItem {
// 标题
string title = 1;
// 封面url
string cover = 2;
// 跳转uri
string uri = 3;
// 参数
string param = 4;
// 跳转类型
// av:视频稿件
string goto = 5;
// 封面右下角标文案
string coverRightText1 = 6;
// 右侧文案1
string rightDesc1 = 7;
// 右侧文案2
string rightDesc2 = 8;
//
string coverGif = 9;
// 右侧文案1图标id
int32 rightIcon1 = 10;
// 右侧文案2图标id
int32 rightIcon2 = 11;
}
//
message ThreeItemV1 {
// 条目基本信息
Base base = 1;
//
int32 titleIcon = 2;
//
string moreUri = 3;
//
string moreText = 4;
//
repeated ThreeItemV1Item items = 5;
}
//
message ThreeItemV1Item {
// 条目基本信息
Base base = 1;
//
string coverLeftText = 2;
//
int32 coverLeftIcon = 3;
//
string desc1 = 4;
//
string desc2 = 5;
//
string badge = 6;
}
//
message HotTopicItem {
//
string cover = 1;
//
string uri = 2;
//
string param = 3;
//
string name = 4;
}
//
message HotTopic {
// 条目基本信息
Base base = 1;
//
string desc = 2;
//
repeated HotTopicItem items = 3;
}
//
message DynamicHot {
// 条目基本信息
Base base = 1;
//
string top_left_title = 2;
//
string desc1 = 3;
//
string desc2 = 4;
//
string more_uri = 5;
//
string more_text = 6;
//
repeated string covers = 7;
//
string cover_right_text = 8;
//
ReasonStyle top_rcmd_reason_style = 9;
}
//
message MiddleCoverV3 {
// 条目基本信息
Base base = 1;
//
string desc1 = 2;
//
string desc2 = 3;
//
ReasonStyle cover_badge_style = 4;
}
//
message LargeCoverV4 {
// 条目基本信息
Base base = 1;
//
string cover_left_text_1 = 2;
//
string cover_left_text_2 = 3;
//
string cover_left_text_3 = 4;
//
string cover_badge = 5;
//
int32 can_play = 6;
//
Up up = 7;
//
string short_link = 8;
//
string share_subtitle = 9;
//
string play_number = 10;
//
string bvid = 11;
//
string sub_param = 12;
}
// 热门列表顶部按钮
message PopularTopEntrance {
// 条目基本信息
Base base = 1;
// 按钮项
repeated EntranceItem items = 2;
}
// 热门列表按钮信息
message EntranceItem {
// 跳转类型
string goto = 1;
// 图标url
string icon = 2;
// 标题
string title = 3;
// 入口模块id
string moduleId = 4;
// 跳转uri
string uri = 5;
// 入口id
int64 entranceId = 6;
// 气泡信息
Bubble bubble = 7;
// 入口类型
// 1:代表分品类热门
int32 entranceType = 8;
}
// 气泡信息
message Bubble {
// 文案
string bubbleContent = 1;
// 版本
int32 version = 2;
// 起始时间
int64 stime = 3;
}