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
+3 -3
View File
@@ -85,7 +85,7 @@ message GetUsersByIdResp {
}
message SearchUsersReq {
optional int64 page = 1; //page
optional int64 offset = 1; //offset
optional int64 limit = 2; //limit
optional int64 id = 3; //id
optional string username = 4; //username
@@ -236,7 +236,7 @@ message GetUserFollowsByIdResp {
}
message SearchUserFollowsReq {
int64 page = 1; //page
int64 offset = 1; //offset
int64 limit = 2; //limit
int64 id = 3; //id
int64 followerId = 4; //followerId
@@ -301,7 +301,7 @@ message GetUserPreferencesByIdResp {
}
message SearchUserPreferencesReq {
int64 page = 1; //page
int64 offset = 1; //offset
int64 limit = 2; //limit
int64 userId = 3; //userId
bool notificationOrder = 4; //notificationOrder