34 lines
583 B
Protocol Buffer
34 lines
583 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package base.v1;
|
|
|
|
message Empty {}
|
|
|
|
message StatusRes {
|
|
bool success = 1;
|
|
}
|
|
message IdRes {
|
|
int64 id = 1;
|
|
}
|
|
message IdReq {
|
|
int64 id = 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 PaginationResp {
|
|
uint32 page = 1; // in query param it will be p
|
|
uint32 page_size = 2; // in query param it will be pz
|
|
optional uint32 total_count = 3; // reponse
|
|
}
|
|
|
|
message BaseQueryParam {
|
|
repeated string sort = 2; // sort by
|
|
optional PaginationReq page = 3;
|
|
}
|