bilibili-API-collect/grpc_api/bilibili/app/show/popular/v1.proto

140 lines
2.2 KiB
Protocol Buffer
Raw Normal View History

syntax = "proto3";
2021-02-05 18:32:00 +08:00
package bilibili.app.show.v1;
import "bilibili/app/playurl/v1.proto";
import "bilibili/app/card/v1.proto";
2021-02-05 18:32:00 +08:00
//热门
service Popular {
2021-02-05 18:32:00 +08:00
//热门列表
//https://app.bilibili.com/bilibili.app.show.v1.Popular/Index
rpc Index (PopularResultReq) returns (PopularReply);
}
2021-02-05 18:32:00 +08:00
//热门列表-请求
message PopularResultReq {
2021-02-05 18:32:00 +08:00
//排位索引id为上此请求末尾项的idx
int64 idx = 1;
2021-02-05 18:32:00 +08:00
//登录标识
//1:未登陆用户第一页 2:登陆用户第一页
int32 loginEvent = 2;
2021-02-05 18:32:00 +08:00
//清晰度
int32 qn = 3;
2021-02-05 18:32:00 +08:00
//视频流版本
int32 fnver = 4;
2021-02-05 18:32:00 +08:00
//视频流功能
int32 fnval = 5;
2021-02-05 18:32:00 +08:00
//是否强制使用域名
int32 forceHost = 6;
2021-02-05 18:32:00 +08:00
//是否4K
int32 fourk = 7;
//
sfixed32 spmid = 8;
2021-02-05 18:32:00 +08:00
//上此请求末尾项的param
sfixed32 lastParam = 9;
2021-02-05 18:32:00 +08:00
//上此请求的ver
sfixed32 ver = 10;
//
int64 entranceId = 11;
//
sfixed32 locationIds = 12;
//
int32 sourceId = 13;
//
int32 flush = 14;
//
bilibili.app.playurl.v1.PlayerArgs playerArgs = 15;
}
2021-02-05 18:32:00 +08:00
//热门列表-回复
message PopularReply {
2021-02-05 18:32:00 +08:00
//卡片列表
repeated bilibili.app.card.v1.Card items = 1;
2021-02-05 18:32:00 +08:00
//配置信息
Config config = 2;
2021-02-05 18:32:00 +08:00
//版本?
string ver = 3;
}
2021-02-05 18:32:00 +08:00
//气泡信息
message Bubble {
2021-02-05 18:32:00 +08:00
//文案
string bubbleContent = 1;
2021-02-05 18:32:00 +08:00
//版本
int32 version = 2;
2021-02-05 18:32:00 +08:00
//起始时间
int64 stime = 3;
}
2021-02-05 18:32:00 +08:00
//配置信息
message Config {
2021-02-05 18:32:00 +08:00
//标题
string itemTitle = 1;
2021-02-05 18:32:00 +08:00
//底部文案
string bottomText = 2;
2021-02-05 18:32:00 +08:00
//底部图片url
string bottomTextCover = 3;
2021-02-05 18:32:00 +08:00
//底部跳转页url
string bottomTextUrl = 4;
2021-02-05 18:32:00 +08:00
//顶部按钮信息列表
repeated EntranceShow topItems = 5;
2021-02-05 18:32:00 +08:00
//头图url
string headImage = 6;
2021-02-05 18:32:00 +08:00
//当前页按钮信息
repeated EntranceShow pageItems = 7;
2021-02-05 18:32:00 +08:00
//?
int32 hit = 8;
}
2021-02-05 18:32:00 +08:00
//按钮信息
message EntranceShow {
2021-02-05 18:32:00 +08:00
//按钮图标url
string icon = 1;
2021-02-05 18:32:00 +08:00
//按钮名
string title = 2;
2021-02-05 18:32:00 +08:00
//入口模块id
string moduleId = 3;
2021-02-05 18:32:00 +08:00
//跳转uri
string uri = 4;
2021-02-05 18:32:00 +08:00
//气泡信息
Bubble bubble = 5;
2021-02-05 18:32:00 +08:00
//入口id
int64 entranceId = 6;
2021-02-05 18:32:00 +08:00
//头图url
string topPhoto = 7;
2021-02-05 18:32:00 +08:00
//入口类型?
int32 entranceType = 8;
}