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:
+5
-15
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user