fix: 统一分页请求的 offset 语义
This commit is contained in:
@@ -50,7 +50,7 @@ message GetCommentLikesByIdResp {
|
||||
}
|
||||
|
||||
message SearchCommentLikesReq {
|
||||
int64 page = 1; //page
|
||||
int64 offset = 1; //offset
|
||||
int64 limit = 2; //limit
|
||||
int64 commentId = 3; //commentId
|
||||
int64 userId = 4; //userId
|
||||
@@ -113,7 +113,7 @@ message GetCommentsByIdResp {
|
||||
}
|
||||
|
||||
message SearchCommentsReq {
|
||||
int64 page = 1; //page
|
||||
int64 offset = 1; //offset
|
||||
int64 limit = 2; //limit
|
||||
int64 id = 3; //id
|
||||
int64 postId = 4; //postId
|
||||
@@ -170,7 +170,7 @@ message GetPostLikesByIdResp {
|
||||
}
|
||||
|
||||
message SearchPostLikesReq {
|
||||
int64 page = 1; //page
|
||||
int64 offset = 1; //offset
|
||||
int64 limit = 2; //limit
|
||||
optional int64 postId = 3; //postId
|
||||
optional int64 userId = 4; //userId
|
||||
@@ -260,7 +260,7 @@ message GetPostsByIdResp {
|
||||
}
|
||||
|
||||
message SearchPostsReq {
|
||||
int64 page = 1; //page
|
||||
int64 offset = 1; //offset
|
||||
int64 limit = 2; //limit
|
||||
int64 id = 3; //id
|
||||
optional int64 authorId = 4; //authorId
|
||||
|
||||
Reference in New Issue
Block a user