comments: bilibili.app.interfaces.v1

This commit is contained in:
Hantong Chen 2025-05-04 14:35:36 +08:00
parent d014cc6d96
commit 42dfa0e3bf
No known key found for this signature in database
GPG Key ID: BA46515EE169702F

View File

@ -7,15 +7,15 @@ import "bilibili/app/archive/v1.proto";
import "bilibili/app/card/v1.proto";
import "bilibili/app/dynamic/v2.proto";
//
//
service History {
//
rpc Clear (ClearReq) returns (NoReply);
//
//
rpc Cursor (CursorReq) returns (CursorReply);
//
//
rpc CursorV2 (CursorV2Req) returns (CursorV2Reply);
//
//
rpc Delete (DeleteReq) returns (NoReply);
//
rpc HistoryTab (HistoryTabReq) returns (HistoryTabReply);
@ -183,107 +183,107 @@ message Button {
string has_title = 7;
}
//
//
message CardArticle {
//
//
repeated string covers = 1;
//
//
string name = 2;
//
// UP mid
int64 mid = 3;
//
// "关注"
bool display_attention = 4;
//
//
string badge = 5;
//
//
Relation relation = 6;
}
//
//
message CardCheese {
//
//
string cover = 1;
//
//
int64 progress = 2;
//
//
int64 duration = 3;
//
//
string subtitle = 4;
//
int64 state = 5;
}
//
//
message CardLive {
//
//
string cover = 1;
//
// UP
string name = 2;
//
// UP mid
int64 mid = 3;
//
// tag
string tag = 4;
//
//
int32 status = 5;
//
// "关注"
bool display_attention = 6;
//
//
Relation relation = 7;
}
//
// OGV 稿
message CardOGV {
//
//
string cover = 1;
//
//
int64 progress = 2;
//
//
int64 duration = 3;
//
//
string subtitle = 4;
//
//
string badge = 5;
//
int64 state = 6;
}
//
// UGC 稿
message CardUGC {
//
//
string cover = 1;
//
//
int64 progress = 2;
//
//
int64 duration = 3;
//
// UP
string name = 4;
//
// UP mid
int64 mid = 5;
//
// "关注"
bool display_attention = 6;
//
// P cid
int64 cid = 7;
//
// P
int32 page = 8;
//
// P
string subtitle = 9;
//
//
Relation relation = 10;
//
// 稿 bvid
string bvid = 11;
//
// ? P
int64 videos = 12;
//
// ?
string short_link = 13;
//
// ?
string share_subtitle = 14;
//
// ?
int64 view = 15;
//
int64 state = 16;
//
// ?
string badge = 17;
//
// ?
Badge badge_v2 = 18;
}
@ -335,90 +335,95 @@ enum CommentType {
comment_type_judge = 2;
}
//
//
message Cursor {
//
//
int64 max = 1;
//
//
int32 max_tp = 2;
}
//
//
message CursorItem {
//
//
oneof card_item {
//
// [`CardUGC`]
CardUGC card_ugc = 1;
//
// [`CardOGV`]
CardOGV card_ogv = 2;
//
// [`CardArticle`]
CardArticle card_article = 3;
//
// [`CardLive`]
CardLive card_live = 4;
//
// [`CardCheese`]
CardCheese card_cheese = 5;
}
//
//
string title = 6;
//
//
string uri = 7;
//
//
int64 view_at = 8;
//
//
int64 kid = 9;
//
// ID (稿 avid room_id )
int64 oid = 10;
//
//
string business = 11;
//
//
int32 tp = 12;
//
//
DeviceType dt = 13;
//
// ?
bool has_share = 14;
//
// ?
string report = 15;
}
//
//
message CursorReply {
//
// [`CursorItem`]
repeated CursorItem items = 1;
//
// [`CursorTab`]
repeated CursorTab tab = 2;
//
//
Cursor cursor = 3;
//
//
bool has_more = 4;
}
//
//
message CursorReq {
//
// ()
Cursor cursor = 1;
//
//
//
// - : `all`
// - : `archive`
// - : `live`
// - : `article`
string business = 2;
//
//
PlayerPreloadParams player_preload = 3;
//
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
}
//
// tab
message CursorTab {
//
//
string business = 1;
//
//
string name = 2;
//
// ? app
string router = 3;
//
// ?
bool focus = 4;
}
//
// [`CursorReply`]
message CursorV2Reply {
//
//
repeated CursorItem items = 1;
//
Cursor cursor = 2;
@ -428,7 +433,7 @@ message CursorV2Reply {
string empty_link = 4;
}
//
// [`CursorReq`]
message CursorV2Req {
//
Cursor cursor = 1;
@ -442,7 +447,7 @@ message CursorV2Req {
bool is_local = 5;
}
//
//
enum DT {
//
Unknown = 0;
@ -526,19 +531,19 @@ message DefaultWordsReq {
int32 search_page_return = 15;
}
//
//
message DeleteReq {
//
//
repeated HisInfo his_info = 1;
//
string tab = 2;
}
//
//
message DeviceType {
//
//
DT type = 1;
//
//
string icon = 2;
}
@ -972,13 +977,24 @@ message ReasonStyle {
int32 bg_style = 8;
}
//
//
message Relation {
//
//
//
// - 1:
// - 2:
// - 3:
// - 4:
int32 status = 1;
//
// UP
//
// - 0:
// - 1:
int32 is_follow = 2;
//
// UP
//
// - 0:
// - 1:
int32 is_followed = 3;
}