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