mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-15 03:30:39 +03:00
21 lines
274 B
Go
21 lines
274 B
Go
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
|
|
}
|