bilibili-API-collect/grpc_api/bilibili/app/interfaces/v1/search.proto

120 lines
2.5 KiB
Protocol Buffer
Raw Normal View History

2021-07-06 21:28:36 +08:00
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:开启青少年模式
2021-07-12 16:37:03 +08:00
int32 teenagers_mode = 3;
2021-07-06 21:28:36 +08:00
}
// 获取搜索建议-响应
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;
// 图片尺寸
2021-07-12 16:37:03 +08:00
double cover_size = 6;
2021-07-06 21:28:36 +08:00
// sug词类型
2021-07-12 16:37:03 +08:00
string sug_type = 7;
2021-07-06 21:28:36 +08:00
// 词条大类型
2021-07-12 16:37:03 +08:00
int32 term_type = 8;
2021-07-06 21:28:36 +08:00
// 跳转类型
string goto = 9;
// 跳转uri
string uri = 10;
// 认证信息
2021-07-12 16:37:03 +08:00
OfficialVerify official_verify = 11;
2021-07-06 21:28:36 +08:00
// 跳转参数
string param = 12;
// up主mid
int64 mid = 13;
// 粉丝数
int32 fans = 14;
// up主等级
int32 level = 15;
// up主稿件数
int32 archives = 16;
// 投稿时间
int64 ptime = 17;
// season类型名称
2021-07-12 16:37:03 +08:00
string season_type_name = 18;
2021-07-06 21:28:36 +08:00
// 地区
string area = 19;
// 作品风格
string style = 20;
// 描述信息
string label = 21;
// 评分
double rating = 22;
// 投票数
int32 vote = 23;
// 角标
repeated ReasonStyle badges = 24;
//
string styles = 25;
//
2021-07-12 16:37:03 +08:00
int64 module_id = 26;
2021-07-06 21:28:36 +08:00
//
2021-07-12 16:37:03 +08:00
string live_link = 27;
2021-07-06 21:28:36 +08:00
}
// 认证信息
message OfficialVerify {
// 认证类型
// 127:未认证 0:个人 1:机构
int32 type = 1;
// 认证描述
string desc = 2;
}
// 角标
message ReasonStyle {
// 角标文案
string text = 1;
// 文案日间色值
2021-07-12 16:37:03 +08:00
string text_color = 2;
2021-07-06 21:28:36 +08:00
// 文案夜间色值
2021-07-12 16:37:03 +08:00
string text_color_night = 3;
2021-07-06 21:28:36 +08:00
// 背景日间色值
2021-07-12 16:37:03 +08:00
string bg_color = 4;
2021-07-06 21:28:36 +08:00
// 背景夜间色值
2021-07-12 16:37:03 +08:00
string bg_color_night = 5;
2021-07-06 21:28:36 +08:00
// 边框日间色值
2021-07-12 16:37:03 +08:00
string border_color = 6;
2021-07-06 21:28:36 +08:00
// 边框夜间色值
2021-07-12 16:37:03 +08:00
string border_color_night = 7;
2021-07-06 21:28:36 +08:00
// 角标样式
// 1:填充模式 2:镂空模式
2021-07-12 16:37:03 +08:00
int32 bg_style = 8;
2021-07-06 21:28:36 +08:00
}