quintodrome/domain/index.go

19 lines
300 B
Go
Raw Normal View History

2016-03-02 05:07:24 -09:00
package domain
type ArtistInfo struct {
ArtistId string
2016-03-02 09:18:39 -09:00
Artist string
2016-03-02 05:07:24 -09:00
}
type ArtistIndex struct {
2016-03-02 09:18:39 -09:00
Id string
2016-03-02 05:07:24 -09:00
Artists []ArtistInfo
}
type ArtistIndexRepository interface {
BaseRepository
2016-03-02 05:07:24 -09:00
Put(m *ArtistIndex) error
Get(id string) (*ArtistIndex, error)
GetAll() ([]ArtistIndex, error)
}