-
Notifications
You must be signed in to change notification settings - Fork 69
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
c4095ef
commit 8075259
Showing
2 changed files
with
12 additions
and
2 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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
package api | ||
|
||
// SortOrder represents the sorting order for entities. | ||
type SortOrder string | ||
|
||
const ( | ||
NoSortOrder SortOrder = "" | ||
AscSortOrder SortOrder = "asc" | ||
// NoSortOrder means that entities may be unsorted. | ||
NoSortOrder SortOrder = "" | ||
// AscSortOrder means that entities should be ordered ascending (example: from 1 to 9). | ||
AscSortOrder SortOrder = "asc" | ||
// DescSortOrder means that entities should be ordered descending (example: from 9 to 1). | ||
DescSortOrder SortOrder = "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