navidrome/domain/album.go

20 lines
469 B
Go
Raw Normal View History

2016-03-02 15:07:24 +01:00
package domain
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"`
CoverArtPath string // TODO http://stackoverflow.com/questions/13795842/linking-itunes-itc2-files-and-ituneslibrary-xml
2016-02-28 19:50:05 +01:00
Year int
Compilation bool
Rating int
Genre string
}
type AlbumRepository interface {
BaseRepository
Put(m *Album) error
Get(id string) (*Album, error)
FindByArtist(artistId string) ([]Album, error)
2016-03-02 19:18:39 +01:00
}