fix: 统一分页请求的 offset 语义

This commit is contained in:
zetaloop
2026-04-07 17:56:38 +08:00
parent 424b2b1cca
commit d153b5cf51
46 changed files with 334 additions and 346 deletions
+4 -4
View File
@@ -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