Bare bones getMusicDirectory for albums!

This commit is contained in:
Deluan
2016-03-02 23:15:17 -05:00
parent 51bae19191
commit 757e1992d7
10 changed files with 146 additions and 15 deletions
+27
View File
@@ -0,0 +1,27 @@
package domain
import (
"time"
)
type MediaFile struct {
Id string
Path string
Title string
Album string
Artist string
AlbumArtist string
AlbumId string `parent:"album"`
Track int
Year int
Genre string
Compilation bool
CreatedAt time.Time
UpdatedAt time.Time
}
type MediaFileRepository interface {
BaseRepository
Put(m *MediaFile) error
FindByAlbum(albumId string) ([]MediaFile, error)
}