Rename domain to model
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package model
|
||||
|
||||
import "errors"
|
||||
|
||||
type BaseRepository interface {
|
||||
CountAll() (int64, error)
|
||||
Exists(id string) (bool, error)
|
||||
}
|
||||
|
||||
var (
|
||||
ErrNotFound = errors.New("data not found")
|
||||
)
|
||||
|
||||
type QueryOptions struct {
|
||||
SortBy string
|
||||
Alpha bool
|
||||
Desc bool
|
||||
Offset int
|
||||
Size int
|
||||
}
|
||||
Reference in New Issue
Block a user