Adding song and album counts

This commit is contained in:
Deluan 2016-03-27 20:13:00 -04:00
parent 167e7a1825
commit 3cc92a32bd
9 changed files with 32 additions and 7 deletions

View file

@ -32,6 +32,7 @@ type Entry struct {
ArtistId string
Type string
UserRating int
SongCount int
UserName string
MinutesAgo int
@ -59,6 +60,7 @@ func FromAlbum(al *domain.Album) Entry {
e.ArtistId = al.ArtistId
e.UserRating = al.Rating
e.Duration = al.Duration
e.SongCount = al.SongCount
return e
}