mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-17 12:32:24 +03:00
19 lines
361 B
Go
19 lines
361 B
Go
package model
|
|
|
|
type Artist struct {
|
|
ID string
|
|
Name string
|
|
AlbumCount int
|
|
}
|
|
|
|
type ArtistRepository interface {
|
|
CountAll() (int64, error)
|
|
Exists(id string) (bool, error)
|
|
Put(m *Artist) error
|
|
Get(id string) (*Artist, error)
|
|
PurgeInactive(active Artists) error
|
|
Search(q string, offset int, size int) (Artists, error)
|
|
}
|
|
|
|
type Artists []Artist
|