2016-03-02 05:33:49 -09:00
|
|
|
package domain
|
|
|
|
|
|
|
|
|
|
type BaseRepository interface {
|
|
|
|
|
NewId(fields ...string) string
|
2016-03-05 15:40:36 -09:00
|
|
|
CountAll() (int64, error)
|
2016-03-02 16:00:55 -09:00
|
|
|
Exists(id string) (bool, error)
|
2016-03-02 05:33:49 -09:00
|
|
|
}
|
2016-03-03 18:44:28 -09:00
|
|
|
|
|
|
|
|
type QueryOptions struct {
|
|
|
|
|
SortBy string
|
|
|
|
|
Alpha bool
|
|
|
|
|
Desc bool
|
|
|
|
|
Offset int
|
|
|
|
|
Size int
|
|
|
|
|
}
|