XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/bilibili-API-collect

增加新版动态点赞转发列表接口 (#633)

280f69f
一心向晚 <54094119+XiaoMiku01@users.noreply.github.com>
提交于

代码差异

1 个文件 +38 -0
Modified grpc_api/bilibili/app/dynamic/v2/dynamic.proto +38 -0
@@ -41,6 +41,8 @@ service Dynamic {
41 41 rpc LikeList(LikeListReq) returns (LikeListReply);
42 42 // 转发列表
43 43 rpc RepostList(RepostListReq) returns (RepostListRsp);
44 // 新版动态转发点赞列表 需要登录
45 rpc ReactionList(ReactionListReq) returns (ReactionListReply);
44 46 // 空间页动态
45 47 rpc DynSpace(DynSpaceReq) returns (DynSpaceRsp);
46 48 // 未登录页分区UP主推荐
@@ -3494,6 +3496,42 @@ message RepostListRsp {
3494 3496 RepostType repost_type = 5;
3495 3497 }
3496 3498
3499 // 新版动态转发点赞列表-请求
3500 message ReactionListReq {
3501 // 动态ID
3502 int64 dynamic_id = 1;
3503 // 动态类型
3504 int64 dyn_type = 2;
3505 // 业务方资源id
3506 int64 rid = 3;
3507 // 偏移,使用上一页回包中的offset字段;第一页不传。
3508 string offset = 4;
3509 }
3510
3511 // 新版动态转发点赞列表-响应
3512 message ReactionListReply {
3513 // 标题
3514 string title = 1;
3515 // 列表
3516 repeated ReactionListItem list = 2;
3517 // 偏移
3518 string offset = 3;
3519 // 是否还有更多
3520 bool has_more = 4;
3521 }
3522
3523 message ReactionListItem {
3524 // 用户信息
3525 UserInfo user = 1;
3526 // 关注关系
3527 Relation relation = 2;
3528 // 显示文字
3529 string act_text = 3;
3530 //
3531 string rcmd_reason = 4;
3532 // bool has_relation = 5;
3533 // bool has_user = 6;
3534 }
3497 3535 // 评论类型
3498 3536 enum RepostType {
3499 3537 repost_hot = 0; // 热门评论