2016-03-02 15:07:24 +01:00
|
|
|
package domain
|
2016-02-26 07:32:31 +01:00
|
|
|
|
|
|
|
type Album struct {
|
2016-02-28 19:50:05 +01:00
|
|
|
Id string
|
|
|
|
Name string
|
2016-02-29 04:56:24 +01:00
|
|
|
ArtistId string `parent:"artist"`
|
2016-03-02 00:59:12 +01:00
|
|
|
CoverArtPath string // TODO http://stackoverflow.com/questions/13795842/linking-itunes-itc2-files-and-ituneslibrary-xml
|
2016-03-03 06:25:26 +01:00
|
|
|
Artist string
|
|
|
|
AlbumArtist string
|
2016-02-28 19:50:05 +01:00
|
|
|
Year int
|
|
|
|
Compilation bool
|
|
|
|
Rating int
|
2016-03-03 04:43:31 +01:00
|
|
|
Genre string
|
2016-03-02 15:33:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type AlbumRepository interface {
|
|
|
|
BaseRepository
|
|
|
|
Put(m *Album) error
|
|
|
|
Get(id string) (*Album, error)
|
2016-03-03 04:22:31 +01:00
|
|
|
FindByArtist(artistId string) ([]Album, error)
|
2016-03-02 19:18:39 +01:00
|
|
|
}
|