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

This commit is contained in:
一心向晚 2023-03-05 00:08:16 +08:00 committed by GitHub
parent e523974e59
commit 280f69f7ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,8 @@ service Dynamic {
rpc LikeList(LikeListReq) returns (LikeListReply);
//
rpc RepostList(RepostListReq) returns (RepostListRsp);
//
rpc ReactionList(ReactionListReq) returns (ReactionListReply);
//
rpc DynSpace(DynSpaceReq) returns (DynSpaceRsp);
// UP主推荐
@ -3494,6 +3496,42 @@ message RepostListRsp {
RepostType repost_type = 5;
}
// -
message ReactionListReq {
// ID
int64 dynamic_id = 1;
//
int64 dyn_type = 2;
// id
int64 rid = 3;
// ,使offset字段
string offset = 4;
}
// -
message ReactionListReply {
//
string title = 1;
//
repeated ReactionListItem list = 2;
//
string offset = 3;
//
bool has_more = 4;
}
message ReactionListItem {
//
UserInfo user = 1;
//
Relation relation = 2;
//
string act_text = 3;
//
string rcmd_reason = 4;
// bool has_relation = 5;
// bool has_user = 6;
}
//
enum RepostType {
repost_hot = 0; //