更新部分proto结构体文件
This commit is contained in:
16
grpc_api/bilibili/app/archive/middleware/v1/preload.proto
Normal file
16
grpc_api/bilibili/app/archive/middleware/v1/preload.proto
Normal file
@@ -0,0 +1,16 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.archive.middleware.v1;
|
||||
|
||||
// 视频秒开参数
|
||||
message PlayerArgs {
|
||||
// 清晰度
|
||||
int64 qn = 1;
|
||||
// 流版本
|
||||
int64 fnver = 2;
|
||||
// 流类型
|
||||
int64 fnval = 3;
|
||||
// 返回url是否强制使用域名
|
||||
// 0:不强制使用域名 1:http域名 2:https域名
|
||||
int64 force_host = 4;
|
||||
}
|
||||
@@ -1,243 +0,0 @@
|
||||
//稿件信息v1模块
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.archive.v1;
|
||||
|
||||
//稿件基本信息
|
||||
message Arc{
|
||||
//稿件avid
|
||||
int64 aid = 1;
|
||||
|
||||
//稿件分P数
|
||||
int64 videos = 2;
|
||||
|
||||
//分区tid
|
||||
int32 typeId = 3;
|
||||
|
||||
//二级分区名
|
||||
string typeName = 4;
|
||||
|
||||
//稿件版权
|
||||
//1:原创 2:转载
|
||||
int32 copyright = 5;
|
||||
|
||||
//稿件封面url
|
||||
string pic = 6;
|
||||
|
||||
//稿件标题
|
||||
string title = 7;
|
||||
|
||||
//稿件发布时间
|
||||
int64 pubdate = 8;
|
||||
|
||||
//用户投稿时间
|
||||
int64 ctime = 9;
|
||||
|
||||
//稿件简介
|
||||
string desc = 10;
|
||||
|
||||
//稿件状态
|
||||
int32 state = 11;
|
||||
|
||||
//访问属性
|
||||
//0:全部可见 10000:登录可见
|
||||
int32 access = 12;
|
||||
|
||||
//属性位配置
|
||||
int32 attribute = 13;
|
||||
|
||||
//空
|
||||
string tag = 14;
|
||||
|
||||
//空
|
||||
repeated string tags = 15;
|
||||
|
||||
//稿件总时长
|
||||
int64 duration = 16;
|
||||
|
||||
//参与的活动id
|
||||
int64 missionId = 17;
|
||||
|
||||
//绑定的商单id
|
||||
int64 orderId = 18;
|
||||
|
||||
//pgc稿件强制重定向url
|
||||
string redirectUrl = 19;
|
||||
|
||||
//???
|
||||
int64 forward = 20;
|
||||
|
||||
//控制标志
|
||||
Rights rights = 21;
|
||||
|
||||
//UP主信息
|
||||
Author author = 22;
|
||||
|
||||
//状态数
|
||||
Stat stat = 23;
|
||||
|
||||
//???
|
||||
string reportResult = 24;
|
||||
|
||||
//投稿时发送的动态内容
|
||||
string dynamic = 25;
|
||||
|
||||
//稿件1P cid
|
||||
int64 firstCid = 26;
|
||||
|
||||
//稿件1P 分辨率
|
||||
Dimension dimension = 27;
|
||||
|
||||
//合作组成员列表
|
||||
repeated StaffInfo staffInfo = 28;
|
||||
|
||||
//ugc合集id
|
||||
int64 seasonId = 29;
|
||||
|
||||
//新版属性位配置
|
||||
int64 attributeV2 = 30;
|
||||
}
|
||||
|
||||
//作者信息
|
||||
message Author{
|
||||
//UID
|
||||
int64 mid = 1;
|
||||
|
||||
//昵称
|
||||
string name = 2;
|
||||
|
||||
//头像url
|
||||
string face = 3;
|
||||
}
|
||||
|
||||
//分辨率信息
|
||||
message Dimension{
|
||||
//宽度
|
||||
int64 width = 1;
|
||||
|
||||
//高度
|
||||
int64 height = 2;
|
||||
|
||||
//方向
|
||||
//0:横屏 1:竖屏
|
||||
int64 rotate = 3;
|
||||
}
|
||||
|
||||
//分P视频
|
||||
message Page{
|
||||
//视频cid
|
||||
int64 cid = 1;
|
||||
|
||||
//分P序号
|
||||
int32 page = 2;
|
||||
|
||||
//源类型
|
||||
//vupload:B站 qq:腾讯 hunan:芒果
|
||||
string from = 3;
|
||||
|
||||
//分P标题
|
||||
string part = 4;
|
||||
|
||||
//分P时长
|
||||
int64 duration = 5;
|
||||
|
||||
//外链vid
|
||||
string vid = 6;
|
||||
|
||||
//分P简介
|
||||
string desc = 7;
|
||||
|
||||
//外链url
|
||||
string webLink = 8;
|
||||
|
||||
//分P分辨率
|
||||
Dimension dimension = 9;
|
||||
}
|
||||
|
||||
//稿件控制标志
|
||||
message Rights{
|
||||
//老版是否付费
|
||||
int32 bp = 1;
|
||||
|
||||
//允许充电
|
||||
int32 elec = 2;
|
||||
|
||||
//允许下载
|
||||
int32 download = 3;
|
||||
|
||||
//是否电影
|
||||
int32 movie = 4;
|
||||
|
||||
//pgc稿件需要付费
|
||||
int32 pay = 5;
|
||||
|
||||
//是否高码率
|
||||
int32 hd5 = 6;
|
||||
|
||||
//是否显示禁止转载标志
|
||||
int32 noReprint = 7;
|
||||
|
||||
//是否允许自动播放
|
||||
int32 autoplay = 8;
|
||||
|
||||
//ugc稿件需要付费
|
||||
int32 ugcPay = 9;
|
||||
|
||||
//是否合作视频
|
||||
int32 isCooperation = 10;
|
||||
|
||||
//是否ugc付费预览
|
||||
int32 ugcPayPreview = 11;
|
||||
|
||||
//是否禁止后台播放
|
||||
int32 noBackground = 12;
|
||||
}
|
||||
|
||||
//合作成员信息
|
||||
message StaffInfo{
|
||||
//成员UID
|
||||
int64 mid = 1;
|
||||
|
||||
//成员角色
|
||||
string title = 2;
|
||||
|
||||
//属性位
|
||||
int64 attribute = 3;
|
||||
}
|
||||
|
||||
//状态数
|
||||
message Stat{
|
||||
//稿件avid
|
||||
int64 aid = 1;
|
||||
|
||||
//播放数
|
||||
int32 view = 2;
|
||||
|
||||
//弹幕数
|
||||
int32 danmaku = 3;
|
||||
|
||||
//评论数
|
||||
int32 reply = 4;
|
||||
|
||||
//收藏数
|
||||
int32 fav = 5;
|
||||
|
||||
//投币数
|
||||
int32 coin = 6;
|
||||
|
||||
//分享数
|
||||
int32 share = 7;
|
||||
|
||||
//当前排名
|
||||
int32 nowRank = 8;
|
||||
|
||||
//历史最高排名
|
||||
int32 hisRank = 9;
|
||||
|
||||
//点赞数
|
||||
int32 like = 10;
|
||||
|
||||
//点踩数
|
||||
//前端恒为0
|
||||
int32 dislike = 11;
|
||||
}
|
||||
178
grpc_api/bilibili/app/archive/v1/archive.proto
Normal file
178
grpc_api/bilibili/app/archive/v1/archive.proto
Normal file
@@ -0,0 +1,178 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.archive.v1;
|
||||
|
||||
// 稿件基本信息
|
||||
message Arc{
|
||||
// 稿件avid
|
||||
int64 aid = 1;
|
||||
// 稿件分P数
|
||||
int64 videos = 2;
|
||||
// 分区id
|
||||
int32 typeId = 3;
|
||||
// 二级分区名
|
||||
string typeName = 4;
|
||||
// 稿件类型
|
||||
// 1:原创 2:转载
|
||||
int32 copyright = 5;
|
||||
// 稿件封面url
|
||||
string pic = 6;
|
||||
// 稿件标题
|
||||
string title = 7;
|
||||
// 稿件发布时间
|
||||
int64 pubdate = 8;
|
||||
// 用户投稿时间
|
||||
int64 ctime = 9;
|
||||
// 稿件简介
|
||||
string desc = 10;
|
||||
// 稿件状态
|
||||
int32 state = 11;
|
||||
// 访问属性
|
||||
// 0:全部可见 10000:登录可见
|
||||
int32 access = 12;
|
||||
// 属性位配置(现在无了)
|
||||
int32 attribute = 13;
|
||||
//
|
||||
string tag = 14;
|
||||
//
|
||||
repeated string tags = 15;
|
||||
// 稿件总时长(单位为秒)
|
||||
int64 duration = 16;
|
||||
// 参与的活动id
|
||||
int64 missionId = 17;
|
||||
// 绑定的商单id
|
||||
int64 orderId = 18;
|
||||
// PGC稿件强制重定向url(如番剧、影视)
|
||||
string redirectUrl = 19;
|
||||
//
|
||||
int64 forward = 20;
|
||||
// 控制标志
|
||||
Rights rights = 21;
|
||||
// UP主信息
|
||||
Author author = 22;
|
||||
// 状态数
|
||||
Stat stat = 23;
|
||||
//
|
||||
string reportResult = 24;
|
||||
// 投稿时发送的动态内容
|
||||
string dynamic = 25;
|
||||
// 稿件1P cid
|
||||
int64 firstCid = 26;
|
||||
// 稿件1P 分辨率
|
||||
Dimension dimension = 27;
|
||||
// 合作组成员列表
|
||||
repeated StaffInfo staffInfo = 28;
|
||||
// UGC合集id
|
||||
int64 seasonId = 29;
|
||||
// 新版属性位配置(也没用)
|
||||
int64 attributeV2 = 30;
|
||||
}
|
||||
|
||||
// UP主信息
|
||||
message Author{
|
||||
// UP主mid
|
||||
int64 mid = 1;
|
||||
// UP主昵称
|
||||
string name = 2;
|
||||
// UP主头像url
|
||||
string face = 3;
|
||||
}
|
||||
|
||||
// 分辨率
|
||||
message Dimension{
|
||||
// 宽度
|
||||
int64 width = 1;
|
||||
// 高度
|
||||
int64 height = 2;
|
||||
// 方向
|
||||
// 0:横屏 1:竖屏
|
||||
int64 rotate = 3;
|
||||
}
|
||||
|
||||
// 分P信息
|
||||
message Page{
|
||||
// 视频cid
|
||||
int64 cid = 1;
|
||||
// 分P序号
|
||||
int32 page = 2;
|
||||
// 源类型
|
||||
// vupload:B站 qq:腾讯 hunan:芒果
|
||||
string from = 3;
|
||||
// 分P标题
|
||||
string part = 4;
|
||||
// 分P时长(单位为秒)
|
||||
int64 duration = 5;
|
||||
// 外链vid
|
||||
string vid = 6;
|
||||
// 分P简介
|
||||
string desc = 7;
|
||||
// 外链url
|
||||
string webLink = 8;
|
||||
// 分P分辨率
|
||||
Dimension dimension = 9;
|
||||
}
|
||||
|
||||
// 稿件控制标志
|
||||
message Rights{
|
||||
// 老版是否付费
|
||||
int32 bp = 1;
|
||||
// 允许充电
|
||||
int32 elec = 2;
|
||||
// 允许下载
|
||||
int32 download = 3;
|
||||
// 是否电影
|
||||
int32 movie = 4;
|
||||
// PGC稿件需要付费
|
||||
int32 pay = 5;
|
||||
// 是否高码率
|
||||
int32 hd5 = 6;
|
||||
// 是否禁止转载标志
|
||||
int32 noReprint = 7;
|
||||
// 是否允许自动播放
|
||||
int32 autoplay = 8;
|
||||
// UGC稿件需要付费
|
||||
int32 ugcPay = 9;
|
||||
// 是否联合投稿
|
||||
int32 isCooperation = 10;
|
||||
// 是否UGC付费预览
|
||||
int32 ugcPayPreview = 11;
|
||||
// 是否禁止后台播放
|
||||
int32 noBackground = 12;
|
||||
}
|
||||
|
||||
// 合作成员信息
|
||||
message StaffInfo{
|
||||
// 成员mid
|
||||
int64 mid = 1;
|
||||
// 成员角色
|
||||
string title = 2;
|
||||
// 属性位
|
||||
// 0:普通 1:赞助商金色标志
|
||||
int64 attribute = 3;
|
||||
}
|
||||
|
||||
// 状态数
|
||||
message Stat{
|
||||
// 稿件avid
|
||||
int64 aid = 1;
|
||||
// 播放数
|
||||
int32 view = 2;
|
||||
// 弹幕数
|
||||
int32 danmaku = 3;
|
||||
// 评论数
|
||||
int32 reply = 4;
|
||||
// 收藏数
|
||||
int32 fav = 5;
|
||||
// 投币数
|
||||
int32 coin = 6;
|
||||
// 分享数
|
||||
int32 share = 7;
|
||||
// 当前排名
|
||||
int32 nowRank = 8;
|
||||
// 历史最高排名
|
||||
int32 hisRank = 9;
|
||||
// 点赞数
|
||||
int32 like = 10;
|
||||
// 点踩数(前端不可见故恒为0)
|
||||
int32 dislike = 11;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
1454
grpc_api/bilibili/app/view/v1/view.proto
Normal file
1454
grpc_api/bilibili/app/view/v1/view.proto
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,42 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.wall.v1;
|
||||
|
||||
//
|
||||
service Wall {
|
||||
//
|
||||
//
|
||||
rpc ruleInfo (RuleRequest) returns (RulesReply);
|
||||
}
|
||||
|
||||
//-请求
|
||||
message RuleRequest {
|
||||
|
||||
}
|
||||
|
||||
//-回复
|
||||
message RulesReply {
|
||||
//
|
||||
map<string,RulesInfo> rulesInfo = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message RuleInfo {
|
||||
//
|
||||
bool tf = 1;
|
||||
|
||||
//
|
||||
string m = 2;
|
||||
|
||||
//
|
||||
string a = 3;
|
||||
|
||||
//
|
||||
string p = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message RulesInfo {
|
||||
//
|
||||
repeated RuleInfo rulesInfo = 1;
|
||||
}
|
||||
38
grpc_api/bilibili/app/wall/v1/wall.proto
Normal file
38
grpc_api/bilibili/app/wall/v1/wall.proto
Normal file
@@ -0,0 +1,38 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.wall.v1;
|
||||
|
||||
// 免流规则
|
||||
service Wall {
|
||||
// 获取免流规则信息
|
||||
rpc RuleInfo (RuleRequest) returns (RulesReply);
|
||||
}
|
||||
|
||||
// 获取免流规则信息-请求
|
||||
message RuleRequest {}
|
||||
|
||||
// 获取免流规则信息-响应
|
||||
message RulesReply {
|
||||
// 各ISP的免流规则信息组
|
||||
// ISP如: cu ct cm
|
||||
map<string,RulesInfo> rulesInfo = 1;
|
||||
}
|
||||
|
||||
// 免流规则信息
|
||||
message RuleInfo {
|
||||
// 是否支持免流
|
||||
bool tf = 1;
|
||||
// 操作模式
|
||||
// break:无 replace:替换 proxy:代理
|
||||
string m = 2;
|
||||
// 操作参数
|
||||
string a = 3;
|
||||
// 匹配目标正则
|
||||
string p = 4;
|
||||
}
|
||||
|
||||
// 免流规则信息组
|
||||
message RulesInfo {
|
||||
// 免流规则信息
|
||||
repeated RuleInfo rulesInfo = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user