更新【proto文件】
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user