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

PageAndOrderParams

parent 8253ab8a
Branches
Tags
No related merge requests found
......@@ -82,6 +82,12 @@ func AbsoluteDateStringQuery(absolute string) string {
return fmt.Sprintf(" = '%v'", absolute)
}
type PageAndOrderParams struct {
PageParams
OrderBy string `json:"order_by,omitempty"`
Order string `json:"order,omitempty"`
}
type PageParams struct {
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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment