navidrome/domain/base.go
2016-03-23 16:30:38 -04:00

21 lines
275 B
Go

package domain
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
}