Integrate ArtistIndex logic into Artist

This commit is contained in:
Deluan
2020-01-17 20:46:19 -05:00
parent 035fdaeb96
commit c0beaa6377
17 changed files with 110 additions and 427 deletions
+8 -2
View File
@@ -5,6 +5,13 @@ type Artist struct {
Name string
AlbumCount int
}
type Artists []Artist
type ArtistIndex struct {
ID string
Artists Artists
}
type ArtistIndexes []ArtistIndex
type ArtistRepository interface {
CountAll() (int64, error)
@@ -14,6 +21,5 @@ type ArtistRepository interface {
PurgeInactive(active Artists) error
Search(q string, offset int, size int) (Artists, error)
Refresh(ids ...string) error
GetIndex() (ArtistIndexes, error)
}
type Artists []Artist