Skip to content
Snippets Groups Projects
Commit 1844af73 authored by Cornel Rautenbach's avatar Cornel Rautenbach
Browse files

PageAndOrderParams

parent 8253ab8a
No related branches found
No related tags found
No related merge requests found
...@@ -82,6 +82,12 @@ func AbsoluteDateStringQuery(absolute string) string { ...@@ -82,6 +82,12 @@ func AbsoluteDateStringQuery(absolute string) string {
return fmt.Sprintf(" = '%v'", absolute) return fmt.Sprintf(" = '%v'", absolute)
} }
type PageAndOrderParams struct {
PageParams
OrderBy string `json:"order_by,omitempty"`
Order string `json:"order,omitempty"`
}
type PageParams struct { type PageParams struct {
Limit int64 `json:"limit,omitempty"` // Limit number of items returned in list (default: 0 (no limit)) Limit int64 `json:"limit,omitempty"` // Limit number of items returned in list (default: 0 (no limit))
Offset int64 `json:"offset,omitempty"` // Offset in list (default: 0 (no offset)) Offset int64 `json:"offset,omitempty"` // Offset in list (default: 0 (no offset))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment