mirror of
https://github.com/navidrome/navidrome.git
synced 2024-08-27 21:11:29 +02:00
23 lines
530 B
Go
23 lines
530 B
Go
package domain
|
|
|
|
type Album struct {
|
|
Id string
|
|
Name string
|
|
ArtistId string `parent:"artist"`
|
|
CoverArtPath string // TODO http://stackoverflow.com/questions/13795842/linking-itunes-itc2-files-and-ituneslibrary-xml
|
|
Artist string
|
|
AlbumArtist string
|
|
Year int
|
|
Compilation bool
|
|
Starred bool
|
|
Rating int
|
|
Genre string
|
|
}
|
|
|
|
type AlbumRepository interface {
|
|
BaseRepository
|
|
Put(m *Album) error
|
|
Get(id string) (*Album, error)
|
|
FindByArtist(artistId string) ([]Album, error)
|
|
}
|