Converted all collections from repositories to *collections
This commit is contained in:
+3
-2
@@ -13,7 +13,8 @@ type ArtistIndex struct {
|
||||
}
|
||||
|
||||
type ArtistInfos []ArtistInfo
|
||||
func (a ArtistInfos) Len() int { return len(a) }
|
||||
|
||||
func (a ArtistInfos) Len() int { return len(a) }
|
||||
func (a ArtistInfos) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
|
||||
func (a ArtistInfos) Less(i, j int) bool {
|
||||
return utils.NoArticle(a[i].Artist) < utils.NoArticle(a[j].Artist)
|
||||
@@ -25,5 +26,5 @@ type ArtistIndexRepository interface {
|
||||
BaseRepository
|
||||
Put(m *ArtistIndex) error
|
||||
Get(id string) (*ArtistIndex, error)
|
||||
GetAll() (ArtistIndexes, error)
|
||||
GetAll() (*ArtistIndexes, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user