Skip to content

Commit

Permalink
generic
Browse files Browse the repository at this point in the history
  • Loading branch information
pieceowater committed Nov 24, 2024
1 parent e6b37d8 commit 2db1a0e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
17 changes: 17 additions & 0 deletions protos/generic/filter.proto
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).
}
10 changes: 10 additions & 0 deletions protos/generic/list.proto
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.
}

0 comments on commit 2db1a0e

Please sign in to comment.