更新部分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;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,29 +1,75 @@
//APP端视频播放v1接口
syntax = "proto3";
package bilibili.app.playurl.v1;
//url
service PlayURL {
//
//https://app.bilibili.com/bilibili.app.playurl.v1.PlayURL/PlayConf
rpc PlayConf (PlayConfReq) returns (PlayConfReply);
//
//
rpc PlayConfEdit (PlayConfEditReq) returns (PlayConfEditReply);
//url
//
// url
rpc PlayURL (PlayURLReq) returns (PlayURLReply);
//
//https://app.bilibili.com/bilibili.app.playurl.v1.PlayURL/PlayView
rpc PlayView (PlayViewReq) returns (PlayViewReply);
//
//
// url
rpc Project (ProjectReq) returns (ProjectReply);
// url及播放界面配置
rpc PlayView (PlayViewReq) returns (PlayViewReply);
//
rpc PlayConfEdit (PlayConfEditReq) returns (PlayConfEditReply);
//
rpc PlayConf (PlayConfReq) returns (PlayConfReply);
}
// url-
message PlayURLReq {
// 稿avid
int64 aid = 1;
// cid
int64 cid = 2;
//
int64 qn = 3;
//
int32 fnver = 4;
//
int32 fnval = 5;
//
// 0: 1:flv下载 2:dash下载
uint32 download = 6;
// url强制是用域名
// 0:使ip 1:使http 2:使https
int32 forceHost = 7;
// 4K
bool fourk = 8;
// spm
string spmid = 9;
// spm
string fromSpmid = 10;
}
// url-
message PlayURLReply {
//
uint32 quality = 1;
//
string format = 2;
// (ms)
uint64 timelength = 3;
// id
uint32 videoCodecid = 4;
//
uint32 fnver = 5;
//
uint32 fnval = 6;
//
bool videoProject = 7;
//
repeated ResponseUrl durl = 8;
// dash视频流
ResponseDash dash = 9;
//
int32 noRexcode = 10;
//
UpgradeLimit upgradeLimit = 11;
//
repeated FormatDescription supportFormats = 12;
//
VideoType type = 13;
}
//-
@@ -48,82 +94,9 @@ message PlayConfEditReply {
}
//url-
message PlayURLReq {
//稿avid
int64 aid = 1;
//cid
int64 cid = 2;
//
int64 qn = 3;
//
int32 fnver = 4;
//
int32 fnval = 5;
//
//0: 1:flv下载 2:dash下载
uint32 download = 6;
//url强制是用域名
//0:使ip 1:使http 2:使https
int32 forceHost = 7;
//4K
bool fourk = 8;
//
string spmid = 9;
//
string fromSpmid = 10;
}
//url-
message PlayURLReply {
//
uint32 quality = 1;
//
string format = 2;
//
uint64 timelength = 3;
//
uint32 videoCodecid = 4;
//
uint32 fnver = 5;
//
uint32 fnval = 6;
//
bool videoProject = 7;
//
repeated ResponseUrl durl = 8;
//
ResponseDash dash = 9;
//
int32 noRexcode = 10;
//
UpgradeLimit upgradeLimit = 11;
//
repeated FormatDescription supportFormats = 12;
//
VideoType type = 13;
}
//-
message PlayViewReq {
@@ -261,15 +234,13 @@ message CloudConf {
FieldValue fieldValue = 3;
}
//
//
enum CodeType {
//
//
NOCODE = 0;
//H.264
// H.264
CODE264 = 1;
//H.265
// H.265
CODE265 = 2;
}
@@ -277,88 +248,60 @@ enum CodeType {
enum ConfType {
//
NoType_VALUE = 0;
//
FLIPCONF_VALUE = 1;
//
CASTCONF_VALUE = 2;
//
FEEDBACK_VALUE = 3;
//
SUBTITLE_VALUE = 4;
//
PLAYBACKRATE_VALUE = 5;
//
TIMEUP_VALUE = 6;
//
PLAYBACKMODE_VALUE = 7;
//
SCALEMODE_VALUE = 8;
//
BACKGROUNDPLAY_VALUE = 9;
//
LIKE_VALUE = 10;
//
DISLIKE_VALUE = 11;
//
COIN_VALUE = 12;
//
ELEC_VALUE = 13;
//
SHARE_VALUE = 14;
//
SCREENSHOT_VALUE = 15;
//
LOCKSCREEN_VALUE = 16;
//
RECOMMEND_VALUE = 17;
//
PLAYBACKSPEED_VALUE = 18;
//
DEFINITION_VALUE = 19;
//
SELECTIONS_VALUE = 20;
//
NEXT_VALUE = 21;
//
EDITDM_VALUE = 22;
//
SMALLWINDOW_VALUE = 23;
//
SHAKE_VALUE = 24;
//
OUTERDM_VALUE = 25;
//
INNERDM_VALUE = 26;
//
PANORAMA_VALUE = 27;
//
DOLBY_VALUE = 28;
}
@@ -367,22 +310,16 @@ enum ConfType {
message DashItem {
//
uint32 id=1;
//线
string baseUrl=2;
//
repeated string backupUrl=3;
//
uint32 bandwidth=4;
//
uint32 codecid=5;
//md5
string md5=6;
//
uint64 size=7;
}
@@ -550,85 +487,58 @@ message PlayAbilityConf {
message PlayArcConf {
//
ArcConf backgroundPlayConf=1;
//
ArcConf flipConf=2;
//
ArcConf castConf=3;
//
ArcConf feedbackConf=4;
//
ArcConf subtitleConf=5;
//
ArcConf playbackRateConf=6;
//
ArcConf timeUpConf=7;
//
ArcConf playbackModeConf=8;
//
ArcConf scaleModeConf=9;
//
ArcConf likeConf=10;
//
ArcConf dislikeConf=11;
//
ArcConf coinConf=12;
//
ArcConf elecConf=13;
//
ArcConf shareConf=14;
//
ArcConf screenShotConf=15;
//
ArcConf lockScreenConf=16;
//
ArcConf recommendConf=17;
//
ArcConf playbackSpeedConf=18;
//
ArcConf definitionConf=19;
//
ArcConf selectionsConf=20;
//
ArcConf nextConf=21;
//
ArcConf editDmConf=22;
//
ArcConf smallWindowConf=23;
//
ArcConf shakeConf=24;
//
ArcConf outerDmConf=25;
//
ArcConf innerDmConf=26;
//
ArcConf freyaEnterConf=27;
//
ArcConf dolbyConf=28;
}
@@ -730,40 +640,28 @@ message Stream {
message StreamInfo {
// qn
uint32 quality=1;
//
string format=2;
//
string description=3;
//
uint32 errCode=4;
//
Limit limit=5;
//vip
bool needVip=6;
//
bool needLogin=7;
//
bool intact=8;
//
bool noRexcode=9;
//
int64 attribute=10;
//
string newDescription=11;
//
string displayDesc=12;
//
string superscript=13;
}
@@ -828,17 +726,14 @@ message VideoInfo {
DolbyItem dolby=7;
}
//
//
enum VideoType {
//
Unknown_VALUE = 0;
//
// flv格式
FLV_VALUE = 1;
//
// dash格式
DASH_VALUE = 2;
//
// mp4格式
MP4_VALUE = 3;
}

View File

@@ -1,27 +0,0 @@
syntax = "proto3";
package bilibili.app.show.gateway.v1;
import "bilibili/broadcast/message/main.proto";
//
service AppShow {
//
//
rpc getActProgress (GetActProgressReq) returns (GetActProgressReply);
}
//-请求
message GetActProgressReq {
//
int64 pageID = 1;
//
int64 mid = 2;
}
//-回复
message GetActProgressReply {
//
bilibili.broadcast.message.main.NativePageEvent event = 1;
}

View File

@@ -0,0 +1,25 @@
syntax = "proto3";
package bilibili.app.show.gateway.v1;
import "bilibili/broadcast/message/main/native.proto";
//
service AppShow {
// 获取Native页进度数据
rpc GetActProgress (GetActProgressReq) returns (GetActProgressReply);
}
// 获取Native页进度数据-请求
message GetActProgressReq {
// Native页id
int64 pageID = 1;
// 用户mid
int64 mid = 2;
}
// 获取Native页进度数据-响应
message GetActProgressReply {
// 进度数据
bilibili.broadcast.message.main.NativePageEvent event = 1;
}

View File

@@ -1,140 +0,0 @@
syntax = "proto3";
package bilibili.app.show.v1;
import "bilibili/app/playurl/v1.proto";
import "bilibili/app/card/v1.proto";
//热门
service Popular {
//热门列表
//https://app.bilibili.com/bilibili.app.show.v1.Popular/Index
rpc Index (PopularResultReq) returns (PopularReply);
}
//热门列表-请求
message PopularResultReq {
//排位索引id为上此请求末尾项的idx
int64 idx = 1;
//登录标识
//1:未登陆用户第一页 2:登陆用户第一页
int32 loginEvent = 2;
//清晰度
int32 qn = 3;
//视频流版本
int32 fnver = 4;
//视频流功能
int32 fnval = 5;
//是否强制使用域名
int32 forceHost = 6;
//是否4K
int32 fourk = 7;
//
sfixed32 spmid = 8;
//上此请求末尾项的param
sfixed32 lastParam = 9;
//上此请求的ver
sfixed32 ver = 10;
//
int64 entranceId = 11;
//
sfixed32 locationIds = 12;
//
int32 sourceId = 13;
//
int32 flush = 14;
//
bilibili.app.playurl.v1.PlayerArgs playerArgs = 15;
}
//热门列表-回复
message PopularReply {
//卡片列表
repeated bilibili.app.card.v1.Card items = 1;
//配置信息
Config config = 2;
//版本?
string ver = 3;
}
//气泡信息
message Bubble {
//文案
string bubbleContent = 1;
//版本
int32 version = 2;
//起始时间
int64 stime = 3;
}
//配置信息
message Config {
//标题
string itemTitle = 1;
//底部文案
string bottomText = 2;
//底部图片url
string bottomTextCover = 3;
//底部跳转页url
string bottomTextUrl = 4;
//顶部按钮信息列表
repeated EntranceShow topItems = 5;
//头图url
string headImage = 6;
//当前页按钮信息
repeated EntranceShow pageItems = 7;
//?
int32 hit = 8;
}
//按钮信息
message EntranceShow {
//按钮图标url
string icon = 1;
//按钮名
string title = 2;
//入口模块id
string moduleId = 3;
//跳转uri
string uri = 4;
//气泡信息
Bubble bubble = 5;
//入口id
int64 entranceId = 6;
//头图url
string topPhoto = 7;
//入口类型?
int32 entranceType = 8;
}

View File

@@ -0,0 +1,108 @@
syntax = "proto3";
package bilibili.app.show.v1;
import "bilibili/app/card/v1/card.proto";
import "bilibili/app/archive/middleware/v1/preload.proto";
// 热门
service Popular {
// 热门列表
rpc Index (PopularResultReq) returns (PopularReply);
}
// 热门列表-请求
message PopularResultReq {
// 排位索引id为上此请求末尾项的idx
int64 idx = 1;
// 登录标识
// 1:未登陆用户第一页 2:登陆用户第一页
int32 loginEvent = 2;
// 清晰度(旧版)
int32 qn = 3;
// 视频流版本(旧版)
int32 fnver = 4;
// 视频流功能(旧版)
int32 fnval = 5;
// 是否强制使用域名(旧版)
int32 forceHost = 6;
// 是否4K(旧版)
int32 fourk = 7;
// 当前页面spm
string spmid = 8;
// 上此请求末尾项的param
string lastParam = 9;
// 上此请求的ver
string ver = 10;
// 分品类热门的入口ID
int64 entranceId = 11;
// 热门定位id集合
string locationIds = 12;
// 0:tag页 1:中间页
int32 sourceId = 13;
// 数据埋点上报
// 0:代表手动刷新 1:代表自动刷新
int32 flush = 14;
// 视频秒开参数
bilibili.app.archive.middleware.v1.PlayerArgs playerArgs = 15;
}
// 热门列表-响应
message PopularReply {
// 卡片列表
repeated bilibili.app.card.v1.Card items = 1;
// 配置信息
Config config = 2;
// 版本
string ver = 3;
}
// 配置信息
message Config {
// 标题
string itemTitle = 1;
// 底部文案
string bottomText = 2;
// 底部图片url
string bottomTextCover = 3;
// 底部跳转页url
string bottomTextUrl = 4;
// 顶部按钮信息列表
repeated EntranceShow topItems = 5;
// 头图url
string headImage = 6;
// 当前页按钮信息
repeated EntranceShow pageItems = 7;
//
int32 hit = 8;
}
// 按钮信息
message EntranceShow {
// 按钮图标url
string icon = 1;
// 按钮名
string title = 2;
// 入口模块id
string moduleId = 3;
// 跳转uri
string uri = 4;
// 气泡信息
Bubble bubble = 5;
// 入口id
int64 entranceId = 6;
// 头图url
string topPhoto = 7;
// 入口类型
int32 entranceType = 8;
}
// 气泡信息
message Bubble {
// 文案
string bubbleContent = 1;
// 版本
int32 version = 2;
// 起始时间
int64 stime = 3;
}

View File

@@ -1,153 +0,0 @@
syntax = "proto3";
package bilibili.app.show.v1;
//排行榜
service Rank {
//全站排行榜
//https://app.bilibili.com/bilibili.app.show.v1.Rank/RankAll
rpc RankAll (RankAllResultReq) returns (RankListReply);
//分区排行榜
//https://app.bilibili.com/bilibili.app.show.v1.Rank/RankRegion
rpc RankRegion (RankRegionResultReq) returns (RankListReply);
}
//全站排行榜-请求
message RankAllResultReq {
//必须为"all"
string order = 1;
//页码
//默认1页
int32 pn = 2;
//每页项数
//默认100项最大100
int32 ps = 3;
}
//分区排行榜-请求
message RankRegionResultReq {
//一级分区tid二级分区不可用
//0:全站
int32 rid = 1;
//页码
//默认1页
int32 pn = 2;
//每页项数
//默认100项最大100
int32 ps = 3;
}
//排行榜信息-回复
message RankListReply {
//排行榜列表
repeated Item items = 1;
}
//排行榜列表项
message Item {
//标题
string title = 1;
//封面url
string cover = 2;
//参数稿件avid
string param = 3;
//跳转uri
string uri = 4;
//重定向url?
string redirectUrl = 5;
//跳转类型
//av:视频稿件
string goto = 6;
//播放数
int32 play = 7;
//弹幕数
int32 danmaku = 8;
//UP主UID
int64 mid = 9;
//UP主昵称
string name = 10;
//UP主头像url
string face = 11;
//评论数
int32 reply = 12;
//收藏数
int32 favourite = 13;
//发布时间
int64 pubDate = 14;
//分区tid
int32 rid = 15;
//子分区名
string rname = 16;
//视频总时长
int64 duration = 17;
//点赞数
int32 like = 18;
//1P cid
int64 cid = 19;
//综合评分
int64 pts = 20;
//合作视频文案
string cooperation = 21;
//属性位
int32 attribute = 22;
//UP主粉丝数
int64 follower = 23;
//UP主认证信息
OfficialVerify officialVerify = 24;
//同一UP收起子项列表
repeated Item children = 25;
//关系信息
Relation relation = 26;
}
//认证信息
message OfficialVerify {
//认证类型
//-1:无认证 0:个人认证 1:机构认证
int32 type = 1;
//认证信息
string desc = 2;
}
//关系信息
message Relation {
//关系状态id
int32 status = 1;
//是否关注
int32 isFollow = 2;
//是否粉丝
int32 isFollowed = 3;
}

View File

@@ -0,0 +1,120 @@
syntax = "proto3";
package bilibili.app.show.v1;
// 排行榜
service Rank {
// 全站排行榜
rpc RankAll (RankAllResultReq) returns (RankListReply);
// 分区排行榜
rpc RankRegion (RankRegionResultReq) returns (RankListReply);
}
// 全站排行榜-请求
message RankAllResultReq {
// 必须为"all"
string order = 1;
// 页码
// 默认1页
int32 pn = 2;
// 每页项数
// 默认100项最大100
int32 ps = 3;
}
// 分区排行榜-请求
message RankRegionResultReq {
// 一级分区tid(二级分区不可用)
// 0:全站
int32 rid = 1;
// 页码
// 默认1页
int32 pn = 2;
// 每页项数
// 默认100项最大100
int32 ps = 3;
}
// 排行榜信息-响应
message RankListReply {
// 排行榜列表
repeated Item items = 1;
}
// 排行榜列表项
message Item {
// 标题
string title = 1;
// 封面url
string cover = 2;
// 参数(稿件avid)
string param = 3;
// 跳转uri
string uri = 4;
// 重定向url
string redirectUrl = 5;
// 跳转类型
// av:视频稿件
string goto = 6;
// 播放数
int32 play = 7;
// 弹幕数
int32 danmaku = 8;
// UP主mid
int64 mid = 9;
// UP主昵称
string name = 10;
// UP主头像url
string face = 11;
// 评论数
int32 reply = 12;
// 收藏数
int32 favourite = 13;
// 发布时间
int64 pubDate = 14;
// 分区tid
int32 rid = 15;
// 子分区名
string rname = 16;
// 视频总时长
int64 duration = 17;
// 点赞数
int32 like = 18;
// 1P cid
int64 cid = 19;
// 综合评分
int64 pts = 20;
// 合作视频文案
string cooperation = 21;
// 属性位
// 0:未关注 1:已关注
int32 attribute = 22;
// UP主粉丝数
int64 follower = 23;
// UP主认证信息
OfficialVerify officialVerify = 24;
// 同一UP收起子项列表
repeated Item children = 25;
// 关系信息
Relation relation = 26;
}
// 认证信息
message OfficialVerify {
// 认证类型
// -1:无认证 0:个人认证 1:机构认证
int32 type = 1;
// 认证描述
string desc = 2;
}
// 关系信息
message Relation {
// 关系状态id
// 1:未关注 2:已关注 3:被关注 4:互相关注
int32 status = 1;
// 是否关注
int32 isFollow = 2;
// 是否粉丝
int32 isFollowed = 3;
}

View File

@@ -5,8 +5,7 @@ package bilibili.app.show.region.v1;
//
service Region {
//
//
rpc region (RegionReq) returns (RegionReply);
rpc Region (RegionReq) returns (RegionReply);
}
//
@@ -25,7 +24,6 @@ message RegionReply {
message RegionConfig {
//
string scenesName = 1;
//
string scenesType = 2;
}
@@ -34,34 +32,24 @@ message RegionConfig {
message RegionInfo {
//
int32 tid = 1;
//
int32 reid = 2;
//
string name = 3;
//
string logo = 4;
//
string goto = 5;
//
string param = 6;
//
string uri = 7;
//
int32 type = 8;
//
int32 isBangumi = 9;
//
repeated RegionInfo children = 10;
//
repeated RegionConfig config = 11;
}

View File

@@ -5,36 +5,29 @@ package bilibili.app.space.v1;
//
service Space {
//
//
rpc archive (ArchiveReq) returns (ArchiveReply);
rpc Archive (ArchiveReq) returns (ArchiveReply);
}
//-
message ArchiveReq {
//
int64 vmid = 1;
//
int32 pn = 2;
//
int32 ps = 3;
//
string order = 4;
}
//-
//-
message ArchiveReply {
//
repeated BiliSpaceVideo item = 1;
//
int32 count = 2;
//
EpisodicButton episodicButton = 3;
//
repeated OrderConfig order = 4;
}
@@ -43,25 +36,18 @@ message ArchiveReply {
message Badge {
//
string text = 1;
//
string textColor = 2;
//
string textColorNight = 3;
//
string bgColor = 4;
//
string bgColorNight = 5;
//
string borderColor = 6;
//
string borderColorNight = 7;
//
int32 bgStyle = 8;
}
@@ -70,52 +56,36 @@ message Badge {
message BiliSpaceVideo {
//
string title = 1;
//
string tname = 2;
//
int64 duration = 3;
//
string cover = 4;
//
string uri = 5;
//
string param = 6;
//
string danmaku = 7;
//
int32 play = 8;
//
int64 ctime = 9;
//
bool state = 10;
//
bool isPopular = 11;
//
repeated Badge badges = 12;
//
string coverRight = 13;
//
string bvid = 14;
//
bool isSteins = 15;
//
bool isUgcpay = 16;
//
bool isCooperation = 17;
}
@@ -124,7 +94,6 @@ message BiliSpaceVideo {
message EpisodicButton {
//
string text = 1;
//
string uri = 2;
}
@@ -133,7 +102,6 @@ message EpisodicButton {
message OrderConfig {
//
string title = 1;
//
string value = 2;
}
}

View File

@@ -7,42 +7,33 @@ import "google/protobuf/any.proto";
//
service Splash {
//
//
rpc list (SplashReq) returns (SplashReply);
rpc List (SplashReq) returns (SplashReply);
}
//-
message SplashReq {
//
int32 width = 1;
//
int32 height = 2;
//
string birth = 3;
//
string adExtra = 4;
//
string network = 5;
}
//-
//-
message SplashReply {
//
int32 maxTime = 1;
//
int32 minInterval = 2;
//
int32 pullInterval = 3;
//
repeated SplashItem list = 4;
//
repeated ShowStrategy show = 5;
}
@@ -51,10 +42,8 @@ message SplashReply {
message ShowStrategy {
//
int32 id = 1;
//
int64 stime = 2;
//
int64 etime = 3;
}
@@ -63,118 +52,80 @@ message ShowStrategy {
message SplashItem {
//
int32 id = 1;
//
int32 type = 2;
//
int32 cardType = 3;
//
int32 duration = 4;
//
int64 beginTime = 5;
//
int64 endTime = 6;
//
string thumb = 7;
//
string hash = 8;
//
string logoUrl = 9;
//
string logoHash = 10;
//
string videoUrl = 11;
//
string videoHash = 12;
//
int32 videoWidth = 13;
//
int32 videoHeight = 14;
//
string schema = 15;
//
string schemaTitle = 16;
//
string schemaPackageName = 17;
//
repeated string schemaCallupWhiteList = 18;
//
int32 skip = 19;
//
string uri = 20;
//
string uriTitle = 21;
//
int32 source = 22;
//
int32 cmMark = 23;
//
string adCb = 24;
//
int64 resourceId = 25;
//
string requestId = 26;
//
string clientIp = 27;
//
bool isAd = 28;
//
bool isAdLoc = 29;
//
google.protobuf.Any extra = 30;
//
int64 cardIndex = 31;
//
int64 serverType = 32;
//
int64 index = 33;
//
string clickUrl = 34;
//
string showUrl = 35;
//
int32 timeTarget = 36;
//
int32 encryption = 37;
//
bool enablePreDownload = 38;
//
bool enableBackgroundDownload = 39;
}