quintodrome/model/artist.go

19 lines
361 B
Go
Raw Normal View History

2020-01-14 18:22:34 -09:00
package model
type Artist struct {
ID string
2016-03-27 16:13:00 -08:00
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)
}
2016-03-04 12:42:09 -09:00
type Artists []Artist