beteran-protobuf/proto/protobuf/pagination.proto
2022-08-13 20:18:21 +00:00

27 lines
557 B
Protocol Buffer

syntax = "proto3";
package bet.protobuf.pagination;
option csharp_namespace = "Bet.Protobuf.Pagination";
option cc_enable_arenas = true;
option java_package = "com.bet.protobuf.pagination";
option java_outer_classname = "PaginationProto";
option java_multiple_files = true;
option objc_class_prefix = "BetPagination";
option go_package = "bet.com/protobuf/pagination";
message Pagination {
optional uint32 page = 1;
optional uint32 page_size = 2;
}
enum SortOrder {
ASC = 0;
DESC = 1;
}
message Sort {
string by = 1;
SortOrder order = 2;
}