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