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
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ message GetGamesByIdResp {
|
||||
}
|
||||
|
||||
message SearchGamesReq {
|
||||
int64 page = 1; //page
|
||||
int64 offset = 1; //offset
|
||||
int64 limit = 2; //limit
|
||||
int64 id = 3; //id
|
||||
optional string name = 4; //name
|
||||
|
||||
@@ -92,7 +92,7 @@ message GetOrdersByIdResp {
|
||||
}
|
||||
|
||||
message SearchOrdersReq {
|
||||
int64 page = 1; //page
|
||||
int64 offset = 1; //offset
|
||||
int64 limit = 2; //limit
|
||||
optional int64 id = 3; //id
|
||||
optional int64 consumerId = 4; //consumerId
|
||||
@@ -176,7 +176,7 @@ message GetOrderStateLogsByIdResp {
|
||||
}
|
||||
|
||||
message SearchOrderStateLogsReq {
|
||||
int64 page = 1; //page
|
||||
int64 offset = 1; //offset
|
||||
int64 limit = 2; //limit
|
||||
optional int64 id = 3; //id
|
||||
optional int64 orderId = 4; //orderId
|
||||
|
||||
@@ -79,7 +79,7 @@ message GetPlayerServicesByIdResp {
|
||||
}
|
||||
|
||||
message SearchPlayerServicesReq {
|
||||
int64 page = 1; //page
|
||||
int64 offset = 1; //offset
|
||||
int64 limit = 2; //limit
|
||||
int64 id = 3; //id
|
||||
int64 playerId = 4; //playerId
|
||||
@@ -167,7 +167,7 @@ message GetPlayersByIdResp {
|
||||
}
|
||||
|
||||
message SearchPlayersReq {
|
||||
optional int64 page = 1; //page
|
||||
optional int64 offset = 1; //offset
|
||||
optional int64 limit = 2; //limit
|
||||
optional int64 id = 3; //id
|
||||
optional int64 userId = 4; //userId
|
||||
|
||||
+3
-3
@@ -61,7 +61,7 @@ message GetShopInvitationsByIdResp {
|
||||
}
|
||||
|
||||
message SearchShopInvitationsReq {
|
||||
int64 page = 1; //page
|
||||
int64 offset = 1; //offset
|
||||
int64 limit = 2; //limit
|
||||
int64 id = 3; //id
|
||||
int64 shopId = 4; //shopId
|
||||
@@ -125,7 +125,7 @@ message GetShopPlayersByIdResp {
|
||||
}
|
||||
|
||||
message SearchShopPlayersReq {
|
||||
int64 page = 1; //page
|
||||
int64 offset = 1; //offset
|
||||
int64 limit = 2; //limit
|
||||
int64 shopId = 3; //shopId
|
||||
int64 playerId = 4; //playerId
|
||||
@@ -220,7 +220,7 @@ message GetShopsByIdResp {
|
||||
}
|
||||
|
||||
message SearchShopsReq {
|
||||
int64 page = 1; //page
|
||||
int64 offset = 1; //offset
|
||||
int64 limit = 2; //limit
|
||||
int64 id = 3; //id
|
||||
int64 ownerId = 4; //ownerId
|
||||
|
||||
@@ -69,7 +69,7 @@ message GetUserVerificationsByIdResp {
|
||||
}
|
||||
|
||||
message SearchUserVerificationsReq {
|
||||
int64 page = 1; //page
|
||||
int64 offset = 1; //offset
|
||||
int64 limit = 2; //limit
|
||||
int64 id = 3; //id
|
||||
int64 userId = 4; //userId
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -66,7 +66,7 @@ message GetWalletTransactionsByIdResp {
|
||||
}
|
||||
|
||||
message SearchWalletTransactionsReq {
|
||||
int64 page = 1; //page
|
||||
int64 offset = 1; //offset
|
||||
int64 limit = 2; //limit
|
||||
int64 id = 3; //id
|
||||
optional int64 userId = 4; //userId
|
||||
@@ -129,7 +129,7 @@ message GetWalletsByIdResp {
|
||||
}
|
||||
|
||||
message SearchWalletsReq {
|
||||
int64 page = 1; //page
|
||||
int64 offset = 1; //offset
|
||||
int64 limit = 2; //limit
|
||||
int64 userId = 3; //userId
|
||||
optional string balance = 4; //balance
|
||||
|
||||
Reference in New Issue
Block a user