更新大量【proto定义】并勘误
This commit is contained in:
@@ -1,594 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.interfaces.v1;
|
||||
|
||||
import "bilibili/app/playurl/v1.proto";
|
||||
|
||||
//历史记录接口
|
||||
service History {
|
||||
//搜索历史记录
|
||||
//https://app.bilibili.com/bilibili.app.interface.v1.History/Search
|
||||
rpc search (SearchReq) returns (SearchReply);
|
||||
|
||||
//?
|
||||
//https://app.bilibili.com/bilibili.app.interface.v1.History/LatestHistory
|
||||
rpc latestHistory (LatestHistoryReq) returns (LatestHistoryReply);
|
||||
|
||||
//获取历史记录业务类型
|
||||
//https://app.bilibili.com/bilibili.app.interface.v1.History/HistoryTab
|
||||
rpc historyTab (HistoryTabReq) returns (HistoryTabReply);
|
||||
|
||||
//删除历史记录
|
||||
//https://app.bilibili.com/bilibili.app.interface.v1.History/Delete
|
||||
rpc delete (DeleteReq) returns (NoReply);
|
||||
|
||||
//获取历史记录列表v2接口
|
||||
//https://app.bilibili.com/bilibili.app.interface.v1.History/CursorV2
|
||||
rpc cursorV2 (CursorV2Req) returns (CursorV2Reply);
|
||||
|
||||
//获取历史记录列表v1接口
|
||||
//https://app.bilibili.com/bilibili.app.interface.v1.History/Cursor
|
||||
rpc cursor (CursorReq) returns (CursorReply);
|
||||
|
||||
//清空历史记录
|
||||
//https://app.bilibili.com/bilibili.app.interface.v1.History/Clear
|
||||
rpc clear (ClearReq) returns (NoReply);
|
||||
}
|
||||
|
||||
//搜索接口
|
||||
service Search {
|
||||
//获取搜索建议
|
||||
//https://app.bilibili.com/bilibili.app.interface.v1.Search/Suggest3
|
||||
rpc suggest3 (SuggestionResult3Req) returns (SuggestionResult3Reply);
|
||||
}
|
||||
|
||||
//搜索历史记录-请求
|
||||
message SearchReq {
|
||||
//关键词
|
||||
string keyword = 1;
|
||||
|
||||
//页码
|
||||
int64 pn = 2;
|
||||
|
||||
//业务选择
|
||||
string business = 3;
|
||||
}
|
||||
|
||||
//搜索历史记录-回复
|
||||
message SearchReply {
|
||||
//历史记录条目列表
|
||||
repeated CursorItem items = 1;
|
||||
|
||||
//是否未拉取完
|
||||
bool hasMore = 2;
|
||||
|
||||
//页面信息
|
||||
Page page = 3;
|
||||
}
|
||||
|
||||
//?-请求
|
||||
message LatestHistoryReq {
|
||||
//业务选择
|
||||
string business = 1;
|
||||
|
||||
//视频预加载配置
|
||||
PlayerPreloadParams playerPreload = 2;
|
||||
}
|
||||
|
||||
//?-回复
|
||||
message LatestHistoryReply {
|
||||
//历史记录条目
|
||||
CursorItem items = 1;
|
||||
|
||||
//
|
||||
string scene = 2;
|
||||
}
|
||||
|
||||
//获取历史记录业务类型-请求
|
||||
message HistoryTabReq {
|
||||
//
|
||||
string business = 1;
|
||||
|
||||
//
|
||||
HistorySource source = 2;
|
||||
|
||||
//
|
||||
string keyword = 3;
|
||||
}
|
||||
|
||||
//获取历史记录业务类型-回复
|
||||
message HistoryTabReply {
|
||||
//
|
||||
repeated CursorTab tab = 1;
|
||||
}
|
||||
|
||||
//删除历史记录-请求
|
||||
message DeleteReq {
|
||||
//历史记录信息
|
||||
HisInfo hisInfo = 1;
|
||||
}
|
||||
|
||||
//获取历史记录列表v2接口-请求
|
||||
message CursorV2Req {
|
||||
//游标信息
|
||||
Cursor cursor = 1;
|
||||
|
||||
//业务选择
|
||||
string business = 2;
|
||||
|
||||
//视频预加载配置
|
||||
PlayerPreloadParams playerPreload = 3;
|
||||
|
||||
//
|
||||
bilibili.app.playurl.v1.PlayerArgs playerArgs = 4;
|
||||
}
|
||||
|
||||
//获取历史记录列表v2接口-回复
|
||||
message CursorV2Reply {
|
||||
//历史记录条目列表
|
||||
repeated CursorItem items = 1;
|
||||
|
||||
//游标信息
|
||||
Cursor cursor = 2;
|
||||
|
||||
//是否未拉取完
|
||||
bool hasMore = 3;
|
||||
}
|
||||
|
||||
//获取历史记录列表v1接口-请求
|
||||
message CursorReq {
|
||||
//游标信息
|
||||
Cursor cursor = 1;
|
||||
|
||||
//业务选择
|
||||
string business = 2;
|
||||
|
||||
//视频预加载配置
|
||||
PlayerPreloadParams playerPreload = 3;
|
||||
}
|
||||
|
||||
//获取历史记录列表v1接口-回复
|
||||
message CursorReply {
|
||||
//历史记录条目列表
|
||||
repeated CursorItem items = 1;
|
||||
|
||||
//业务类型表
|
||||
repeated CursorTab tab = 2;
|
||||
|
||||
//游标信息
|
||||
Cursor cursor = 3;
|
||||
|
||||
//是否未拉取完
|
||||
bool hasMore = 4;
|
||||
}
|
||||
|
||||
//清空历史记录-请求
|
||||
message ClearReq {
|
||||
//业务选择
|
||||
string business = 1;
|
||||
}
|
||||
|
||||
//空回复
|
||||
message NoReply {
|
||||
|
||||
}
|
||||
|
||||
//获取搜索建议-请求
|
||||
message SuggestionResult3Req {
|
||||
//关键字
|
||||
string keyword = 1;
|
||||
|
||||
//是否语法高亮
|
||||
int32 highlight = 2;
|
||||
|
||||
//是否青少年模式
|
||||
int32 teenagersMode = 3;
|
||||
}
|
||||
|
||||
//获取搜索建议-回复
|
||||
message SuggestionResult3Reply {
|
||||
//搜索追踪id
|
||||
string trackid = 1;
|
||||
|
||||
//搜索建议条目列表
|
||||
repeated ResultItem list = 2;
|
||||
|
||||
//
|
||||
string expStr = 3;
|
||||
}
|
||||
|
||||
//专栏条目类型
|
||||
message CardArticle {
|
||||
//封面uel
|
||||
repeated string covers = 1;
|
||||
|
||||
//作者昵称
|
||||
string name = 2;
|
||||
|
||||
//作者UID
|
||||
int64 mid = 3;
|
||||
|
||||
//
|
||||
bool displayAttention = 4;
|
||||
|
||||
//标志名
|
||||
string badge = 5;
|
||||
|
||||
//
|
||||
Relation relation = 6;
|
||||
}
|
||||
|
||||
//课程条目类型
|
||||
message CardCheese {
|
||||
//封面url
|
||||
string cover = 1;
|
||||
|
||||
//观看进度
|
||||
int64 progress = 2;
|
||||
|
||||
//总计时长
|
||||
int64 duration = 3;
|
||||
|
||||
//单集标题
|
||||
string subtitle = 4;
|
||||
}
|
||||
|
||||
//直播条目类型
|
||||
message CardLive {
|
||||
//封面url
|
||||
string cover = 1;
|
||||
|
||||
//主播昵称
|
||||
string name = 2;
|
||||
|
||||
//主播UID
|
||||
int64 mid = 3;
|
||||
|
||||
//直播分区名
|
||||
string tag = 4;
|
||||
|
||||
//
|
||||
int32 ststus = 5;
|
||||
|
||||
//
|
||||
bool displayAttention = 6;
|
||||
|
||||
//
|
||||
Relation relation = 7;
|
||||
}
|
||||
|
||||
//pgc稿件条目类型
|
||||
message CardOGV {
|
||||
//封面url
|
||||
string cover = 1;
|
||||
|
||||
//观看进度
|
||||
int64 progress = 2;
|
||||
|
||||
//总计时长
|
||||
int64 duration = 3;
|
||||
|
||||
//单集标题
|
||||
string subtitle = 4;
|
||||
}
|
||||
|
||||
//ugc稿件条目类型
|
||||
message CardUGC {
|
||||
//封面url
|
||||
string cover = 1;
|
||||
|
||||
//观看进度
|
||||
int64 progress = 2;
|
||||
|
||||
//视频长度
|
||||
int64 duration = 3;
|
||||
|
||||
//UP主昵称
|
||||
string name = 4;
|
||||
|
||||
//UP主UID
|
||||
int64 mid = 5;
|
||||
|
||||
//
|
||||
bool displayAttention = 6;
|
||||
|
||||
//观看视频cid
|
||||
int64 cid = 7;
|
||||
|
||||
//观看视频分P
|
||||
int32 page = 8;
|
||||
|
||||
//
|
||||
string subtitle = 9;
|
||||
|
||||
//
|
||||
Relation relation = 10;
|
||||
|
||||
//稿件bvid
|
||||
string bvid = 11;
|
||||
|
||||
//总分P数
|
||||
int64 videos = 12;
|
||||
|
||||
//短链接
|
||||
string shortLink = 13;
|
||||
|
||||
//副标题文案
|
||||
string shareSubtitle = 14;
|
||||
|
||||
//播放数
|
||||
int64 view = 15;
|
||||
}
|
||||
|
||||
//游标信息
|
||||
message Cursor {
|
||||
//起始时间戳
|
||||
int64 max = 1;
|
||||
|
||||
//
|
||||
int32 maxTp = 2;
|
||||
}
|
||||
|
||||
//历史记录条目
|
||||
message CursorItem {
|
||||
//主体数据
|
||||
oneof cardItemCase {
|
||||
//ugc稿件
|
||||
CardUGC cardUGC = 1;
|
||||
|
||||
//pgc稿件
|
||||
CardOGV cardOGV = 2;
|
||||
|
||||
//专栏
|
||||
CardArticle cardArticle = 3;
|
||||
|
||||
//直播
|
||||
CardLive cardLive = 4;
|
||||
|
||||
//课程
|
||||
CardCheese cardCheese = 5;
|
||||
}
|
||||
|
||||
//标题
|
||||
string title = 6;
|
||||
|
||||
//目标uri/url
|
||||
string uri = 7;
|
||||
|
||||
//观看时间
|
||||
int64 viewAt = 8;
|
||||
|
||||
//历史记录id
|
||||
int64 kid = 9;
|
||||
|
||||
//对象id
|
||||
int64 oid = 10;
|
||||
|
||||
//业务类型
|
||||
string business = 11;
|
||||
|
||||
//业务类型代码
|
||||
int32 tp = 12;
|
||||
|
||||
//设备标识
|
||||
DeviceType dt = 13;
|
||||
|
||||
//
|
||||
bool hasShare = 14;
|
||||
}
|
||||
|
||||
//业务分类表
|
||||
message CursorTab {
|
||||
//业务名
|
||||
string business = 1;
|
||||
|
||||
//名称
|
||||
string name = 2;
|
||||
|
||||
//路由uri
|
||||
string router = 3;
|
||||
|
||||
//
|
||||
bool focus = 4;
|
||||
}
|
||||
|
||||
//设备标识代码
|
||||
enum DT {
|
||||
//未知
|
||||
Unknown_VALUE = 0;
|
||||
|
||||
//手机端
|
||||
Phone_VALUE = 1;
|
||||
|
||||
//ipad端
|
||||
Pad_VALUE = 2;
|
||||
|
||||
//web端
|
||||
PC_VALUE = 3;
|
||||
}
|
||||
|
||||
//设备标识
|
||||
message DeviceType {
|
||||
//设备标识代码
|
||||
DT type = 1;
|
||||
|
||||
//图标url
|
||||
string icon = 2;
|
||||
}
|
||||
|
||||
//历史记录信息
|
||||
message HisInfo {
|
||||
//业务选择
|
||||
string business = 1;
|
||||
|
||||
//历史记录id
|
||||
int64 kid = 2;
|
||||
}
|
||||
|
||||
//
|
||||
enum HistorySource {
|
||||
//
|
||||
history_VALUE = 0;
|
||||
|
||||
//
|
||||
shopping_VALUE = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message OfficialVerify {
|
||||
//
|
||||
int32 type = 1;
|
||||
|
||||
//
|
||||
string desc = 2;
|
||||
}
|
||||
|
||||
//页面信息
|
||||
message Page {
|
||||
//当前页码
|
||||
int64 pn = 1;
|
||||
|
||||
//总计条目数
|
||||
int64 total = 2;
|
||||
}
|
||||
|
||||
//视频预加载配置
|
||||
message PlayerPreloadParams {
|
||||
//清晰度
|
||||
int64 qn = 1;
|
||||
|
||||
//
|
||||
int64 fnver = 2;
|
||||
|
||||
//流类型
|
||||
int64 fnval = 3;
|
||||
|
||||
//强制域名
|
||||
int64 forceHost = 4;
|
||||
|
||||
//是否4K
|
||||
int64 fourk = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message ReasonStyle {
|
||||
//
|
||||
string text = 1;
|
||||
|
||||
//
|
||||
string textColor = 2;
|
||||
|
||||
//
|
||||
string textColorNight = 3;
|
||||
|
||||
//
|
||||
string bgColor = 4;
|
||||
|
||||
//
|
||||
string bgColorNight = 5;
|
||||
|
||||
//
|
||||
string borderColor = 6;
|
||||
|
||||
//
|
||||
string borderColorNight = 7;
|
||||
|
||||
//
|
||||
int32 bgStyle = 8;
|
||||
}
|
||||
|
||||
//
|
||||
message Relation {
|
||||
//
|
||||
int32 status = 1;
|
||||
|
||||
//
|
||||
int32 isFollow = 2;
|
||||
|
||||
//
|
||||
int32 isFollowed = 3;
|
||||
}
|
||||
|
||||
//搜索建议条目
|
||||
message ResultItem {
|
||||
//来源
|
||||
string from = 1;
|
||||
|
||||
//显示结果(语法高亮)
|
||||
string title = 2;
|
||||
|
||||
//结果
|
||||
string keyword = 3;
|
||||
|
||||
//序号
|
||||
int32 position = 4;
|
||||
|
||||
//
|
||||
string cover = 5;
|
||||
|
||||
//
|
||||
double coverSize = 6;
|
||||
|
||||
//
|
||||
string sugType = 7;
|
||||
|
||||
//
|
||||
int32 termType = 8;
|
||||
|
||||
//
|
||||
string goto = 9;
|
||||
|
||||
//
|
||||
string uri = 10;
|
||||
|
||||
//
|
||||
OfficialVerify officialVerify = 11;
|
||||
|
||||
//
|
||||
string param = 12;
|
||||
|
||||
//
|
||||
int64 mid = 13;
|
||||
|
||||
//
|
||||
int32 fans = 14;
|
||||
|
||||
//
|
||||
int32 level = 15;
|
||||
|
||||
//
|
||||
int32 archives = 16;
|
||||
|
||||
//
|
||||
int64 ptime = 17;
|
||||
|
||||
//
|
||||
string seasonTypeName = 18;
|
||||
|
||||
//
|
||||
string area = 19;
|
||||
|
||||
//
|
||||
string style = 20;
|
||||
|
||||
//
|
||||
string label = 21;
|
||||
|
||||
//
|
||||
double rating = 22;
|
||||
|
||||
//
|
||||
int32 vote = 23;
|
||||
|
||||
//
|
||||
repeated ReasonStyle badges = 24;
|
||||
|
||||
//
|
||||
string styles = 25;
|
||||
|
||||
//
|
||||
int64 moduleId = 26;
|
||||
|
||||
//
|
||||
string liveLink = 27;
|
||||
}
|
||||
374
grpc_api/bilibili/app/interfaces/v1/history.proto
Normal file
374
grpc_api/bilibili/app/interfaces/v1/history.proto
Normal file
@@ -0,0 +1,374 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.interfaces.v1;
|
||||
|
||||
import "bilibili/app/archive/middleware/v1/preload.proto";
|
||||
|
||||
// 历史记录
|
||||
service History {
|
||||
// 获取历史记录tab
|
||||
rpc HistoryTab (HistoryTabReq) returns (HistoryTabReply);
|
||||
// 获取历史记录列表(旧版)
|
||||
rpc Cursor (CursorReq) returns (CursorReply);
|
||||
// 获取历史记录列表
|
||||
rpc CursorV2 (CursorV2Req) returns (CursorV2Reply);
|
||||
// 删除历史记录
|
||||
rpc Delete (DeleteReq) returns (NoReply);
|
||||
// 搜索历史记录
|
||||
rpc Search (SearchReq) returns (SearchReply);
|
||||
// 清空历史记录
|
||||
rpc Clear (ClearReq) returns (NoReply);
|
||||
// 获取最新的历史记录
|
||||
rpc LatestHistory (LatestHistoryReq) returns (LatestHistoryReply);
|
||||
}
|
||||
|
||||
// 获取历史记录tab-请求
|
||||
message HistoryTabReq {
|
||||
// 业务类型
|
||||
// archive:视频 live:直播 article:专栏 goods:商品 show:展演
|
||||
string business = 1;
|
||||
// 查询请求来源
|
||||
HistorySource source = 2;
|
||||
// 搜索关键词
|
||||
string keyword = 3;
|
||||
}
|
||||
|
||||
// 获取历史记录tab-响应
|
||||
message HistoryTabReply {
|
||||
// tab列表
|
||||
repeated CursorTab tab = 1;
|
||||
}
|
||||
|
||||
// 搜索历史记录来源
|
||||
enum HistorySource {
|
||||
// 主站历史记录页
|
||||
history_VALUE = 0;
|
||||
// 会员购浏览记录
|
||||
shopping_VALUE = 1;
|
||||
}
|
||||
|
||||
// 获取历史记录列表(旧版)-请求
|
||||
message CursorReq {
|
||||
// 游标信息
|
||||
Cursor cursor = 1;
|
||||
// 业务类型
|
||||
// all:全部 archive:视频 live:直播 article:专栏
|
||||
string business = 2;
|
||||
// 秒开参数(旧版)
|
||||
PlayerPreloadParams playerPreload = 3;
|
||||
// 秒开参数
|
||||
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
|
||||
}
|
||||
|
||||
// 获取历史记录列表(旧版)-响应
|
||||
message CursorReply {
|
||||
// 卡片内容
|
||||
repeated CursorItem items = 1;
|
||||
// 顶部tab
|
||||
repeated CursorTab tab = 2;
|
||||
// 游标信息
|
||||
Cursor cursor = 3;
|
||||
// 是否未拉取完
|
||||
bool hasMore = 4;
|
||||
}
|
||||
|
||||
// 获取历史记录列表-请求
|
||||
message CursorV2Req {
|
||||
// 游标信息
|
||||
Cursor cursor = 1;
|
||||
// 业务类型
|
||||
// archive:视频 live:直播 article:专栏 goods:商品 show:展演
|
||||
string business = 2;
|
||||
// 秒开参数(旧版)
|
||||
PlayerPreloadParams playerPreload = 3;
|
||||
// 秒开参数
|
||||
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
|
||||
// 是否选择本机的播放历史
|
||||
bool is_local = 5;
|
||||
}
|
||||
|
||||
// 获取历史记录列表-响应
|
||||
message CursorV2Reply {
|
||||
// 卡片内容
|
||||
repeated CursorItem items = 1;
|
||||
// 游标信息
|
||||
Cursor cursor = 2;
|
||||
// 是否未拉取完
|
||||
bool hasMore = 3;
|
||||
}
|
||||
|
||||
// 历史记录卡片信息
|
||||
message CursorItem {
|
||||
// 主体数据
|
||||
oneof card_item {
|
||||
// ugc稿件
|
||||
CardUGC cardUGC = 1;
|
||||
// pgc稿件
|
||||
CardOGV cardOGV = 2;
|
||||
// 专栏
|
||||
CardArticle cardArticle = 3;
|
||||
// 直播
|
||||
CardLive cardLive = 4;
|
||||
// 课程
|
||||
CardCheese cardCheese = 5;
|
||||
}
|
||||
// 标题
|
||||
string title = 6;
|
||||
// 目标uri/url
|
||||
string uri = 7;
|
||||
// 观看时间
|
||||
int64 viewAt = 8;
|
||||
// 历史记录id
|
||||
int64 kid = 9;
|
||||
// 业务id
|
||||
int64 oid = 10;
|
||||
// 业务类型
|
||||
// archive:视频 live:直播 article:专栏 goods:商品 show:展演
|
||||
string business = 11;
|
||||
// 业务类型代码
|
||||
int32 tp = 12;
|
||||
// 设备标识
|
||||
DeviceType dt = 13;
|
||||
// 是否有分享按钮
|
||||
bool hasShare = 14;
|
||||
}
|
||||
|
||||
// ugc稿件卡片
|
||||
message CardUGC {
|
||||
// 封面url
|
||||
string cover = 1;
|
||||
// 观看进度
|
||||
int64 progress = 2;
|
||||
// 视频长度
|
||||
int64 duration = 3;
|
||||
// UP主昵称
|
||||
string name = 4;
|
||||
// UP主mid
|
||||
int64 mid = 5;
|
||||
// 是否展示关注按钮
|
||||
bool displayAttention = 6;
|
||||
// 历史观看视频cid
|
||||
int64 cid = 7;
|
||||
// 历史观看视频分P
|
||||
int32 page = 8;
|
||||
// 历史观看视频分P的标题
|
||||
string subtitle = 9;
|
||||
// 关系信息
|
||||
Relation relation = 10;
|
||||
// 稿件bvid
|
||||
string bvid = 11;
|
||||
// 总分P数
|
||||
int64 videos = 12;
|
||||
// 短链接
|
||||
string shortLink = 13;
|
||||
// 分享副标题
|
||||
string shareSubtitle = 14;
|
||||
// 播放数
|
||||
int64 view = 15;
|
||||
}
|
||||
|
||||
// pgc稿件卡片
|
||||
message CardOGV {
|
||||
// 封面url
|
||||
string cover = 1;
|
||||
// 观看进度
|
||||
int64 progress = 2;
|
||||
// 总计时长
|
||||
int64 duration = 3;
|
||||
// 单集标题
|
||||
string subtitle = 4;
|
||||
}
|
||||
|
||||
// 专栏卡片
|
||||
message CardArticle {
|
||||
// 封面url
|
||||
repeated string covers = 1;
|
||||
// UP主昵称
|
||||
string name = 2;
|
||||
// UP主mid
|
||||
int64 mid = 3;
|
||||
// 是否展示关注按钮
|
||||
bool displayAttention = 4;
|
||||
// 角标
|
||||
string badge = 5;
|
||||
// 关系信息
|
||||
Relation relation = 6;
|
||||
}
|
||||
|
||||
// 直播卡片
|
||||
message CardLive {
|
||||
// 封面url
|
||||
string cover = 1;
|
||||
// 主播昵称
|
||||
string name = 2;
|
||||
// 主播mid
|
||||
int64 mid = 3;
|
||||
// 直播分区名
|
||||
string tag = 4;
|
||||
// 直播状态
|
||||
int32 ststus = 5;
|
||||
// 是否展示关注按钮
|
||||
bool displayAttention = 6;
|
||||
// 关系信息
|
||||
Relation relation = 7;
|
||||
}
|
||||
|
||||
// 课程卡片
|
||||
message CardCheese {
|
||||
// 封面url
|
||||
string cover = 1;
|
||||
// 观看进度
|
||||
int64 progress = 2;
|
||||
// 总计时长
|
||||
int64 duration = 3;
|
||||
// 单集标题
|
||||
string subtitle = 4;
|
||||
}
|
||||
|
||||
// 业务分类表
|
||||
message CursorTab {
|
||||
// 业务类型
|
||||
string business = 1;
|
||||
// 名称
|
||||
string name = 2;
|
||||
// 路由uri
|
||||
string router = 3;
|
||||
// tab定位
|
||||
bool focus = 4;
|
||||
}
|
||||
|
||||
// 游标信息
|
||||
message Cursor {
|
||||
// 本页最大值游标值
|
||||
int64 max = 1;
|
||||
// 本页最大值游标类型
|
||||
int32 maxTp = 2;
|
||||
}
|
||||
|
||||
// 删除历史记录-请求
|
||||
message DeleteReq {
|
||||
// 历史记录信息
|
||||
HisInfo hisInfo = 1;
|
||||
}
|
||||
|
||||
// 历史记录信息
|
||||
message HisInfo {
|
||||
// 业务类型
|
||||
// archive:视频 live:直播 article:专栏 goods:商品 show:展演
|
||||
string business = 1;
|
||||
// 历史记录id
|
||||
int64 kid = 2;
|
||||
}
|
||||
|
||||
// 空响应
|
||||
message NoReply {}
|
||||
|
||||
// 设备类型
|
||||
message DeviceType {
|
||||
// 设备标识代码
|
||||
DT type = 1;
|
||||
// 图标url
|
||||
string icon = 2;
|
||||
}
|
||||
|
||||
//设备标识代码
|
||||
enum DT {
|
||||
// 未知
|
||||
Un known = 0;
|
||||
//手机端
|
||||
Phone = 1;
|
||||
// ipad端
|
||||
Pad = 2;
|
||||
// web端
|
||||
PC = 3;
|
||||
// TV端
|
||||
TV = 4;
|
||||
//
|
||||
Car = 5;
|
||||
//
|
||||
Iot = 6;
|
||||
// apad端
|
||||
AndPad = 7;
|
||||
}
|
||||
|
||||
// 关系信息
|
||||
message Relation {
|
||||
// 关系状态
|
||||
// 1:未关注 2:已关注 3:被关注 4:互关
|
||||
int32 status = 1;
|
||||
// 用户关注UP主
|
||||
int32 isFollow = 2;
|
||||
// UP主关注用户
|
||||
int32 isFollowed = 3;
|
||||
}
|
||||
|
||||
// 搜索历史记录-请求
|
||||
message SearchReq {
|
||||
// 关键词
|
||||
string keyword = 1;
|
||||
// 页码
|
||||
int64 pn = 2;
|
||||
// 业务类型
|
||||
// archive:视频 live:直播 article:专栏 goods:商品 show:展演
|
||||
string business = 3;
|
||||
}
|
||||
|
||||
// 搜索历史记录-响应
|
||||
message SearchReply {
|
||||
// 卡片内容
|
||||
repeated CursorItem items = 1;
|
||||
// 是否未拉取完
|
||||
bool hasMore = 2;
|
||||
// 页面信息
|
||||
Page page = 3;
|
||||
}
|
||||
|
||||
// 页面信息
|
||||
message Page {
|
||||
// 当前页码
|
||||
int64 pn = 1;
|
||||
// 总计条目数
|
||||
int64 total = 2;
|
||||
}
|
||||
|
||||
// 秒开参数
|
||||
message PlayerPreloadParams {
|
||||
//清晰度
|
||||
int64 qn = 1;
|
||||
// 流版本
|
||||
int64 fnver = 2;
|
||||
// 流类型
|
||||
int64 fnval = 3;
|
||||
// 是否强制域名
|
||||
int64 forceHost = 4;
|
||||
// 是否4K
|
||||
int64 fourk = 5;
|
||||
}
|
||||
|
||||
// 清空历史记录-请求
|
||||
message ClearReq {
|
||||
// 业务类型
|
||||
// archive:视频 live:直播 article:专栏 goods:商品 show:展演
|
||||
string business = 1;
|
||||
}
|
||||
|
||||
// 获取最新的历史记录-请求
|
||||
message LatestHistoryReq {
|
||||
// 业务类型
|
||||
// archive:视频 live:直播 article:专栏 goods:商品 show:展演
|
||||
string business = 1;
|
||||
// 秒开参数
|
||||
PlayerPreloadParams playerPreload = 2;
|
||||
}
|
||||
|
||||
// 获取最新的历史记录-响应
|
||||
message LatestHistoryReply {
|
||||
// 卡片内容
|
||||
CursorItem items = 1;
|
||||
// 场景
|
||||
string scene = 2;
|
||||
// 弹窗停留时间
|
||||
int64 rtime = 3;
|
||||
// 分组的标志(客户端埋点上报)
|
||||
string flag = 4;
|
||||
}
|
||||
119
grpc_api/bilibili/app/interfaces/v1/search.proto
Normal file
119
grpc_api/bilibili/app/interfaces/v1/search.proto
Normal file
@@ -0,0 +1,119 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.interfaces.v1;
|
||||
|
||||
// 搜索
|
||||
service Search {
|
||||
// 获取搜索建议
|
||||
rpc Suggest3 (SuggestionResult3Req) returns (SuggestionResult3Reply);
|
||||
}
|
||||
|
||||
// 获取搜索建议-请求
|
||||
message SuggestionResult3Req {
|
||||
// 关键字
|
||||
string keyword = 1;
|
||||
// 是否语法高亮
|
||||
// 0:不显示 1:显示
|
||||
int32 highlight = 2;
|
||||
// 是否青少年模式
|
||||
// 1:开启青少年模式
|
||||
int32 teenagersMode = 3;
|
||||
}
|
||||
|
||||
// 获取搜索建议-响应
|
||||
message SuggestionResult3Reply {
|
||||
// 搜索追踪id
|
||||
string trackid = 1;
|
||||
// 搜索建议条目列表
|
||||
repeated ResultItem list = 2;
|
||||
// 搜索的abtest 实验信息
|
||||
string expStr = 3;
|
||||
}
|
||||
|
||||
// 搜索建议条目
|
||||
message ResultItem {
|
||||
// 来源
|
||||
string from = 1;
|
||||
// 显示结果(语法高亮)
|
||||
string title = 2;
|
||||
// 搜索关键字
|
||||
string keyword = 3;
|
||||
// 序号
|
||||
int32 position = 4;
|
||||
// 图片
|
||||
string cover = 5;
|
||||
// 图片尺寸
|
||||
double coverSize = 6;
|
||||
// sug词类型
|
||||
string sugType = 7;
|
||||
// 词条大类型
|
||||
int32 termType = 8;
|
||||
// 跳转类型
|
||||
string goto = 9;
|
||||
// 跳转uri
|
||||
string uri = 10;
|
||||
// 认证信息
|
||||
OfficialVerify officialVerify = 11;
|
||||
// 跳转参数
|
||||
string param = 12;
|
||||
// up主mid
|
||||
int64 mid = 13;
|
||||
// 粉丝数
|
||||
int32 fans = 14;
|
||||
// up主等级
|
||||
int32 level = 15;
|
||||
// up主稿件数
|
||||
int32 archives = 16;
|
||||
// 投稿时间
|
||||
int64 ptime = 17;
|
||||
// season类型名称
|
||||
string seasonTypeName = 18;
|
||||
// 地区
|
||||
string area = 19;
|
||||
// 作品风格
|
||||
string style = 20;
|
||||
// 描述信息
|
||||
string label = 21;
|
||||
// 评分
|
||||
double rating = 22;
|
||||
// 投票数
|
||||
int32 vote = 23;
|
||||
// 角标
|
||||
repeated ReasonStyle badges = 24;
|
||||
//
|
||||
string styles = 25;
|
||||
//
|
||||
int64 moduleId = 26;
|
||||
//
|
||||
string liveLink = 27;
|
||||
}
|
||||
|
||||
// 认证信息
|
||||
message OfficialVerify {
|
||||
// 认证类型
|
||||
// 127:未认证 0:个人 1:机构
|
||||
int32 type = 1;
|
||||
// 认证描述
|
||||
string desc = 2;
|
||||
}
|
||||
|
||||
// 角标
|
||||
message ReasonStyle {
|
||||
// 角标文案
|
||||
string text = 1;
|
||||
// 文案日间色值
|
||||
string textColor = 2;
|
||||
// 文案夜间色值
|
||||
string textColorNight = 3;
|
||||
// 背景日间色值
|
||||
string bgColor = 4;
|
||||
// 背景夜间色值
|
||||
string bgColorNight = 5;
|
||||
// 边框日间色值
|
||||
string borderColor = 6;
|
||||
// 边框夜间色值
|
||||
string borderColorNight = 7;
|
||||
// 角标样式
|
||||
// 1:填充模式 2:镂空模式
|
||||
int32 bgStyle = 8;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
61
grpc_api/bilibili/app/resource/privacy/v1/api.proto
Normal file
61
grpc_api/bilibili/app/resource/privacy/v1/api.proto
Normal file
@@ -0,0 +1,61 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.resource.privacy.v1;
|
||||
|
||||
// 隐私
|
||||
service Privacy {
|
||||
// 获取隐私设置
|
||||
rpc PrivacyConfig(NoArgRequest) returns(PrivacyConfigReply);
|
||||
// 修改隐私设置
|
||||
rpc SetPrivacyConfig(SetPrivacyConfigRequest) returns(NoReply);
|
||||
}
|
||||
|
||||
// 空请求
|
||||
message NoArgRequest{}
|
||||
|
||||
// 空响应
|
||||
message NoReply{}
|
||||
|
||||
// 获取隐私设置-响应
|
||||
message PrivacyConfigReply {
|
||||
// 隐私设置
|
||||
PrivacyConfigItem privacy_config_item = 1;
|
||||
}
|
||||
|
||||
// 隐私设置
|
||||
message PrivacyConfigItem {
|
||||
// 隐私开关类型
|
||||
PrivacyConfigType privacy_config_type = 1;
|
||||
//
|
||||
string title = 2;
|
||||
// 隐私开关状态
|
||||
PrivacyConfigState state = 3;
|
||||
//
|
||||
string sub_title = 4;
|
||||
//
|
||||
string sub_title_uri = 5;
|
||||
}
|
||||
|
||||
// 隐私开关类型
|
||||
enum PrivacyConfigType {
|
||||
//
|
||||
none = 0;
|
||||
// 动态同城
|
||||
dynamic_city = 1;
|
||||
}
|
||||
|
||||
// 隐私开关状态
|
||||
enum PrivacyConfigState {
|
||||
// 关闭
|
||||
close = 0;
|
||||
// 打开
|
||||
open = 1;
|
||||
}
|
||||
|
||||
// 修改隐私设置-请求
|
||||
message SetPrivacyConfigRequest {
|
||||
// 隐私开关类型
|
||||
PrivacyConfigType privacy_config_type = 1;
|
||||
// 隐私开关状态
|
||||
PrivacyConfigState state = 2;
|
||||
}
|
||||
133
grpc_api/bilibili/app/resource/v1/module.proto
Normal file
133
grpc_api/bilibili/app/resource/v1/module.proto
Normal file
@@ -0,0 +1,133 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.resource.v1;
|
||||
|
||||
//
|
||||
service Module {
|
||||
//
|
||||
rpc List(ListReq) returns (ListReply);
|
||||
}
|
||||
|
||||
//
|
||||
enum EnvType {
|
||||
//
|
||||
Unknown = 0;
|
||||
//
|
||||
Release = 1;
|
||||
//
|
||||
Test = 2;
|
||||
}
|
||||
|
||||
//
|
||||
enum LevelType {
|
||||
Undefined = 0;
|
||||
// 高,需立即下载
|
||||
High = 1;
|
||||
// 中,可以延迟下载
|
||||
Middle = 2;
|
||||
// 低,仅在业务方使用到时由业务方手动进行下载
|
||||
Low = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message ListReq {
|
||||
//
|
||||
string pool_name = 1;
|
||||
//
|
||||
string module_name = 2;
|
||||
//
|
||||
repeated VersionListReq version_list = 3;
|
||||
//
|
||||
EnvType env = 4;
|
||||
//
|
||||
int32 sys_ver = 5;
|
||||
//
|
||||
int32 scale = 6;
|
||||
//
|
||||
int32 arch = 7;
|
||||
}
|
||||
|
||||
//
|
||||
message VersionListReq {
|
||||
//
|
||||
string pool_name = 1;
|
||||
//
|
||||
repeated VersionReq versions = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message VersionReq {
|
||||
//
|
||||
string module_name = 1;
|
||||
//
|
||||
int64 version = 2;
|
||||
}
|
||||
|
||||
//
|
||||
enum IncrementType {
|
||||
// 全量包
|
||||
Total = 0;
|
||||
// 增量包
|
||||
Incremental = 1;
|
||||
}
|
||||
|
||||
//
|
||||
enum CompressType {
|
||||
// unzip
|
||||
Unzip = 0;
|
||||
// 不操作
|
||||
Original = 1;
|
||||
}
|
||||
|
||||
message ListReply {
|
||||
//
|
||||
string env = 1;
|
||||
//
|
||||
repeated PoolReply pools = 2;
|
||||
}
|
||||
|
||||
message PoolReply {
|
||||
//
|
||||
string name = 1;
|
||||
//
|
||||
repeated ModuleReply modules = 2;
|
||||
}
|
||||
|
||||
message ModuleReply {
|
||||
//
|
||||
string name = 1;
|
||||
//
|
||||
int64 version = 2;
|
||||
//
|
||||
string url = 3;
|
||||
//
|
||||
string md5 = 4;
|
||||
//
|
||||
string total_md5 = 5;
|
||||
//
|
||||
IncrementType increment = 6;
|
||||
//
|
||||
bool is_wifi = 7;
|
||||
//
|
||||
LevelType level = 8;
|
||||
//
|
||||
string filename = 9;
|
||||
//
|
||||
string file_type = 10;
|
||||
//
|
||||
int64 file_size = 11;
|
||||
//
|
||||
CompressType compress = 12;
|
||||
//
|
||||
int64 publish_time = 13;
|
||||
// 上报使用
|
||||
int64 pool_id = 14;
|
||||
//
|
||||
int64 module_id = 15;
|
||||
//
|
||||
int64 version_id = 16;
|
||||
//
|
||||
int64 file_id = 17;
|
||||
//
|
||||
bool zip_check = 18;
|
||||
}
|
||||
@@ -43,7 +43,7 @@ message PopularResultReq {
|
||||
// 数据埋点上报
|
||||
// 0:代表手动刷新 1:代表自动刷新
|
||||
int32 flush = 14;
|
||||
// 视频秒开参数
|
||||
// 秒开参数
|
||||
bilibili.app.archive.middleware.v1.PlayerArgs playerArgs = 15;
|
||||
}
|
||||
|
||||
|
||||
@@ -585,7 +585,7 @@ message UserSeason {
|
||||
}
|
||||
|
||||
//
|
||||
message SeasonPlayer{
|
||||
message SeasonPlayer {
|
||||
//
|
||||
int64 aid = 1;
|
||||
//
|
||||
@@ -898,9 +898,9 @@ enum SeasonType {
|
||||
//
|
||||
Unknown = 0;
|
||||
//
|
||||
Base = 1;
|
||||
Base = 1;
|
||||
//
|
||||
Good = 2;
|
||||
Good = 2;
|
||||
}
|
||||
|
||||
// UGC视频合集信息
|
||||
@@ -1085,7 +1085,7 @@ message Node {
|
||||
}
|
||||
|
||||
// 稿件播放中数据-请求
|
||||
message ViewProgressReq{
|
||||
message ViewProgressReq {
|
||||
// 稿件avid
|
||||
int64 aid = 1;
|
||||
// 视频cid
|
||||
@@ -1095,7 +1095,7 @@ message ViewProgressReq{
|
||||
}
|
||||
|
||||
// 稿件播放中数据-回复
|
||||
message ViewProgressReply{
|
||||
message ViewProgressReply {
|
||||
// 视频引导信息
|
||||
VideoGuide videoGuide = 1;
|
||||
// Chronos灰度管理
|
||||
@@ -1171,7 +1171,7 @@ message OperationCardNew {
|
||||
oneof renderCase {
|
||||
// 标准卡
|
||||
StandardCard standardCard= 6;
|
||||
// 老运营卡片(原B剪跳转卡)
|
||||
// 老运营卡片(原B剪跳转卡)
|
||||
OperationCard operationCard = 7;
|
||||
}
|
||||
//
|
||||
@@ -1200,7 +1200,7 @@ enum OperationCardType {
|
||||
}
|
||||
|
||||
// 标准卡
|
||||
message StandardCard{
|
||||
message StandardCard {
|
||||
// 卡片文案
|
||||
string title = 1;
|
||||
// 按钮文字 未操作
|
||||
@@ -1212,7 +1212,7 @@ message StandardCard{
|
||||
}
|
||||
|
||||
// 老运营卡片
|
||||
message OperationCard{
|
||||
message OperationCard {
|
||||
// 开始时间(单位为秒)
|
||||
int32 startTime = 1;
|
||||
// 结束时间(单位为秒)
|
||||
@@ -1230,7 +1230,7 @@ message OperationCard{
|
||||
}
|
||||
|
||||
// 互动弹幕条目信息
|
||||
message CommandDm{
|
||||
message CommandDm {
|
||||
// 弹幕id
|
||||
int64 id = 1;
|
||||
// 对象视频cid
|
||||
@@ -1306,7 +1306,7 @@ message subTFPanel {
|
||||
}
|
||||
|
||||
// 短视频下载-请求
|
||||
message ShortFormVideoDownloadReq{
|
||||
message ShortFormVideoDownloadReq {
|
||||
// 稿件avid
|
||||
int64 aid = 1;
|
||||
// 视频cid
|
||||
@@ -1379,7 +1379,7 @@ message BizFollowVideoParam {
|
||||
}
|
||||
|
||||
// 预约活动参数
|
||||
message BizReserveActivityParam{
|
||||
message BizReserveActivityParam {
|
||||
// 活动id
|
||||
int64 activityId = 1;
|
||||
// 场景
|
||||
|
||||
Reference in New Issue
Block a user