2016-03-02 05:07:24 -09:00
|
|
|
package domain
|
2016-02-25 21:32:31 -09:00
|
|
|
|
|
|
|
|
type Artist struct {
|
2016-03-27 16:13:00 -08:00
|
|
|
Id string
|
|
|
|
|
Name string
|
|
|
|
|
AlbumCount int
|
2016-03-02 05:33:49 -09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ArtistRepository interface {
|
|
|
|
|
BaseRepository
|
|
|
|
|
Put(m *Artist) error
|
|
|
|
|
Get(id string) (*Artist, error)
|
2016-03-18 15:50:21 -08:00
|
|
|
PurgeInactive(active Artists) ([]string, error)
|
2016-03-02 05:33:49 -09:00
|
|
|
}
|
2016-03-04 12:42:09 -09:00
|
|
|
|
|
|
|
|
type Artists []Artist
|