-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6b37d8
commit 2db1a0e
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
syntax = "proto3"; | ||
|
||
option go_package = "./;generated"; | ||
|
||
package generic; | ||
|
||
// Pagination options. | ||
message Pagination { | ||
int32 page = 1; // The page number. | ||
int32 length = 2; // The number of items per page. | ||
} | ||
|
||
// Sorting options. | ||
message Sort { | ||
string field = 1; // The field to sort by. | ||
string direction = 2; // The sort direction (e.g., ASC, DESC). | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
syntax = "proto3"; | ||
|
||
option go_package = "./;generated"; | ||
|
||
package generic; | ||
|
||
// Pagination metadata. | ||
message PaginationInfo { | ||
int32 count = 1; // Total number of items. | ||
} |