Rename domain to model

This commit is contained in:
Deluan
2020-01-14 22:22:34 -05:00
parent 25686c1742
commit 0ea2bd79d9
54 changed files with 404 additions and 404 deletions
+20
View File
@@ -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
}