mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-07 22:01:08 +03:00
22 lines
307 B
Go
22 lines
307 B
Go
package domain
|
|
|
|
import "errors"
|
|
|
|
type BaseRepository interface {
|
|
NewId(fields ...string) string
|
|
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
|
|
}
|