add getAlbumList2

This commit is contained in:
sentriz
2019-05-15 16:03:31 +01:00
parent 4a5b36ccee
commit 5fae510958
7 changed files with 62 additions and 29 deletions

View File

@@ -16,6 +16,7 @@ type Album struct {
Path string `gorm:"not null;unique_index"`
CoverID int
Cover Cover
Year int
Tracks []Track
}
@@ -82,10 +83,11 @@ type Setting struct {
type Play struct {
IDBase
User User
UserID int
Track Track
TrackID int
UserID int `gorm:"not null;index"`
Album Album
AlbumID int `gorm:"not null;index"`
Time time.Time
Count int
}
// Folder represents the settings table