更新【proto文件】

This commit is contained in:
SocialSisterYi
2021-02-05 18:32:00 +08:00
parent 84eab33d9e
commit c454b3a409
18 changed files with 1919 additions and 1442 deletions

View File

@@ -2,6 +2,294 @@ 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;
@@ -112,27 +400,28 @@ message Avatar {
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;
//
@@ -144,7 +433,7 @@ message Base {
//
PlayerArgs playerArgs = 10;
//
//条目排位序号
int64 idx = 11;
//
@@ -153,7 +442,8 @@ message Base {
//
Mask mask = 13;
//
//来源标识
//recommend:推荐 operation:管理?
string fromType = 14;
//
@@ -165,84 +455,50 @@ message Base {
//
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 Card {
oneof itemCase {
//
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 CreativeContent {
//
@@ -288,75 +544,33 @@ message DislikeReason {
string name = 2;
}
//
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 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 HotTopic {
//
Base base = 1;
//
string desc = 2;
//
repeated HotTopicItem items = 3;
}
//
message HotTopicItem {
//
@@ -387,111 +601,6 @@ message HotwordEntrance {
string icon = 4;
}
//
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 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 LikeButton {
//
@@ -522,21 +631,6 @@ message Mask {
Button button = 2;
}
//
message MiddleCoverV3 {
//
Base base = 1;
//
string desc1 = 2;
//
string desc2 = 3;
//
ReasonStyle coverBadgeStyle = 4;
}
//
message PlayerArgs {
//
@@ -570,57 +664,37 @@ message PlayerArgs {
int64 seasonId = 11;
}
//
message PopularTopEntrance {
//
Base base = 1;
//
repeated EntranceItem items = 2;
}
//
message RcmdOneItem {
//
Base base = 1;
//
ReasonStyle topRcmdReasonStyle = 2;
//
SmallCoverRcmdItem item = 3;
}
//
//标签框信息
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;
//
@@ -642,162 +716,94 @@ message ReasonStyle {
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 SmallCoverV5 {
//
Base base = 1;
//
string coverGif = 2;
//
Up up = 3;
//
string coverRightText1 = 4;
//
string rightDesc1 = 5;
//
string rightDesc2 = 6;
//
ReasonStyle rcmdReasonStyle = 7;
//
HotwordEntrance hotwordEntrance = 8;
//
ReasonStyle cornerMarkStyle = 9;
//
int32 rightIcon1 = 10;
//
int32 rightIcon2 = 11;
//
ReasonStyle leftCornerMarkStyle = 12;
}
//
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 ThreeItemV1Item {
//
//条目基本信息
Base base = 1;
//
@@ -824,7 +830,7 @@ message ThreePoint {
//
repeated DislikeReason feedbacks = 2;
//
//稍后再看
int32 watchLater = 3;
}
@@ -882,12 +888,12 @@ message ThreePointV3 {
int32 defaultId = 11;
}
//
//三点v4
message ThreePointV4 {
//
//分享面板信息
SharePlane sharePlane = 1;
//
//稍后再看
WatchLater watchLater = 2;
}
@@ -945,11 +951,11 @@ message Up {
string cooperation = 8;
}
//
//稍后再看信息
message WatchLater {
//
//稿件avid
int64 aid = 1;
//
//稿件bvid
string bvid = 2;
}

View File

@@ -3,27 +3,27 @@ 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 PlayConf (PlayConfReq) returns (PlayConfReply);
//
//
rpc playConfEdit (PlayConfEditReq) returns (PlayConfEditReply);
rpc PlayConfEdit (PlayConfEditReq) returns (PlayConfEditReply);
//视频url
//获取视频url
//
rpc playURL (PlayURLReq) returns (PlayURLReply);
rpc PlayURL (PlayURLReq) returns (PlayURLReply);
//视频播放业务数据
//获取视频播放业务数据
//https://app.bilibili.com/bilibili.app.playurl.v1.PlayURL/PlayView
rpc playView (PlayViewReq) returns (PlayViewReply);
rpc PlayView (PlayViewReq) returns (PlayViewReply);
//
//
rpc project (ProjectReq) returns (ProjectReply);
rpc Project (ProjectReq) returns (ProjectReply);
}
//获取播放界面配置-请求
@@ -59,10 +59,10 @@ message PlayURLReq {
//清晰度
int64 qn = 3;
//流类型
//视频流版本
int32 fnver = 4;
//
//视频流功能
int32 fnval = 5;
//下载模式
@@ -125,7 +125,7 @@ message PlayURLReply {
VideoType type = 13;
}
//-请求
//获取视频播放业务数据-请求
message PlayViewReq {
//稿件avid
int64 aid = 1;
@@ -166,7 +166,7 @@ message PlayViewReq {
CodeType preferCodecType = 12;
}
//-回复
//获取视频播放业务数据-回复
message PlayViewReply {
//视频流信息
VideoInfo info = 1;
@@ -261,16 +261,16 @@ message CloudConf {
FieldValue fieldValue = 3;
}
//
//编码类型
enum CodeType {
//
NOCODE_VALUE = 0;
//默认
NOCODE = 0;
//
CODE264_VALUE = 1;
//H.264
CODE264 = 1;
//
CODE265_VALUE = 2;
//H.265
CODE265 = 2;
}
//
@@ -388,7 +388,7 @@ message DashItem {
}
//dash视频流
message DashVideo{
message DashVideo {
//主线流
string baseUrl=1;
@@ -415,7 +415,7 @@ message DashVideo{
}
//杜比音频信息
message DolbyItem{
message DolbyItem {
//
int32 type=1;
@@ -424,7 +424,7 @@ message DolbyItem{
}
//事件
message Event{
message Event {
//震动
Shake shake=1;
}
@@ -459,95 +459,95 @@ message FormatDescription {
string superscript = 6;
}
//播放控件用户自定义配置
message PlayAbilityConf{
//
//禁用功能配置
message PlayAbilityConf {
//后台播放
bool backgroundPlayDisable=1;
//
//镜像反转
bool flipDisable=2;
//
//投屏
bool castDisable=3;
//
//反馈
bool feedbackDisable=4;
//
//字幕
bool subtitleDisable=5;
//
//播放速度
bool playbackRateDisable=6;
//
//定时停止
bool timeUpDisable=7;
//
//播放方式
bool playbackModeDisable=8;
//
//画面尺寸
bool scaleModeDisable=9;
//
//
bool likeDisable=10;
//
//
bool dislikeDisable=11;
//
//投币
bool coinDisable=12;
//
//充电
bool elecDisable=13;
//
//分享
bool shareDisable=14;
//
//截图
bool screenShotDisable=15;
//
//锁定
bool lockScreenDisable=16;
//
//相关推荐
bool recommendDisable=17;
//
//播放速度
bool playbackSpeedDisable=18;
//
//清晰度
bool definitionDisable=19;
//
//选集
bool selectionsDisable=20;
//
//下一集
bool nextDisable=21;
//
//编辑弹幕
bool editDmDisable=22;
//
//小窗
bool smallWindowDisable=23;
//
//震动
bool shakeDisable=24;
//
bool outerDmDisable=25;
//
bool innerDmDisable=26;
//
bool freyaEnterDisable=27;
//
//杜比音效
bool dolbyDisable=28;
}
//播放控件稿件配置
message PlayArcConf{
message PlayArcConf {
//后台播放
ArcConf backgroundPlayConf=1;
@@ -629,7 +629,7 @@ message PlayArcConf{
//
ArcConf freyaEnterConf=27;
//
//杜比音效
ArcConf dolbyConf=28;
}
@@ -679,7 +679,7 @@ message ResponseDash {
}
//分段流条目
message ResponseUrl{
message ResponseUrl {
//分段序号
uint32 order = 1;
@@ -700,19 +700,19 @@ message ResponseUrl{
}
//分段视频流
message SegmentVideo{
message SegmentVideo {
//分段视频流列表
repeated ResponseUrl segment=1;
}
//震动
message Shake{
message Shake {
//
string file=1;
}
//视频流信息
message Stream{
message Stream {
//元数据
StreamInfo info=1;
@@ -727,7 +727,7 @@ message Stream{
}
//流媒体元数据
message StreamInfo{
message StreamInfo {
//清晰度 qn
uint32 quality=1;
@@ -769,7 +769,7 @@ message StreamInfo{
}
//不满足条件信息
message Limit{
message Limit {
//
string title=1;
@@ -790,7 +790,7 @@ message UpgradeButton {
}
//互动视频升级提示
message UpgradeLimit{
message UpgradeLimit {
//错误码
int32 code =1;
@@ -805,7 +805,7 @@ message UpgradeLimit{
}
//视频url信息
message VideoInfo{
message VideoInfo {
//视频清晰度
uint32 quality=1;

View File

@@ -1,47 +1,48 @@
syntax = "proto3";
package bilibili.app.show.popular.v1;
package bilibili.app.show.v1;
import "bilibili/app/playurl/v1.proto";
import "bilibili/app/card/v1.proto";
//
//热门
service Popular {
//
//
rpc index (PopularResultReq) returns (PopularReply);
//热门列表
//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;
//
@@ -60,80 +61,80 @@ message PopularResultReq {
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

@@ -1,146 +1,153 @@
syntax = "proto3";
package bilibili.app.show.rank.v1;
package bilibili.app.show.v1;
//
//排行榜
service Rank {
//
//
rpc rankAll (RankAllResultReq) returns (RankListReply);
//全站排行榜
//https://app.bilibili.com/bilibili.app.show.v1.Rank/RankAll
rpc RankAll (RankAllResultReq) returns (RankListReply);
//
//
rpc rankRegion (RankRegionResultReq) 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;
}