chore: add pagination to list inboxes

This commit is contained in:
Steven
2024-10-14 23:32:39 +08:00
parent b4d72e3349
commit 14712b42fa
9 changed files with 170 additions and 55 deletions

View File

@@ -61,10 +61,20 @@ message Inbox {
message ListInboxesRequest {
// Format: users/{id}
string user = 1;
// The maximum number of inbox to return.
int32 page_size = 2;
// Provide this to retrieve the subsequent page.
string page_token = 3;
}
message ListInboxesResponse {
repeated Inbox inboxes = 1;
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
}
message UpdateInboxRequest {