Refactored paging/sorting options

This commit is contained in:
Deluan
2016-03-03 22:44:28 -05:00
parent 5ca9680059
commit 87e012f3bf
6 changed files with 26 additions and 12 deletions
+8
View File
@@ -5,3 +5,11 @@ type BaseRepository interface {
CountAll() (int, error)
Exists(id string) (bool, error)
}
type QueryOptions struct {
SortBy string
Alpha bool
Desc bool
Offset int
Size int
}