feat: expose album, song and artist annotations in the RESTful API

This commit is contained in:
Deluan
2020-03-28 19:22:55 -04:00
parent 0e36ed35a3
commit 777231ea79
7 changed files with 47 additions and 16 deletions
+5 -5
View File
@@ -9,11 +9,11 @@ type Artist struct {
FullText string `json:"fullText"`
// Annotations
PlayCount int `json:"-" orm:"-"`
PlayDate time.Time `json:"-" orm:"-"`
Rating int `json:"-" orm:"-"`
Starred bool `json:"-" orm:"-"`
StarredAt time.Time `json:"-" orm:"-"`
PlayCount int `json:"playCount" orm:"-"`
PlayDate time.Time `json:"playDate" orm:"-"`
Rating int `json:"rating" orm:"-"`
Starred bool `json:"starred" orm:"-"`
StarredAt time.Time `json:"starredAt" orm:"-"`
}
type Artists []Artist