Requests with list as their response now accept

page_no, page_size
Responses with list now have
page_no, page_size, optional total_count
This commit is contained in:
2025-07-16 15:53:24 +03:30
parent 3eac30a1e3
commit c5baf25a24
5 changed files with 93 additions and 73 deletions
+5 -15
View File
@@ -14,23 +14,13 @@ message IdReq {
int64 id = 1;
}
message YesNoRes{
message YesNoRes {
bool yes = 1;
}
message PaginationReq {
uint32 page = 1; // in query param it will be p
uint32 page_size = 2; // in query param it will be pz
}
message PaginationRespSample {
message PaginationResp {
uint32 no = 1;
uint32 size = 2;
optional uint32 count = 3;
}
message BaseQueryParam {
repeated string sort = 2; // sort by
optional PaginationReq page = 3;
uint32 page_no = 2;
uint32 page_size = 3;
optional uint32 total_count = 4;
}