First version of getAlbumList.view working.

- It still misses almost all type options
- Introduced "parent" in Child subresponse, as it was breaking DSub
This commit is contained in:
Deluan
2016-03-04 09:09:16 -05:00
parent 87e012f3bf
commit 9a246b5432
12 changed files with 239 additions and 48 deletions
+5
View File
@@ -1,5 +1,7 @@
package domain
import "time"
type Album struct {
Id string
Name string
@@ -13,6 +15,8 @@ type Album struct {
Starred bool
Rating int
Genre string
CreatedAt time.Time
UpdatedAt time.Time
}
type Albums []Album
@@ -22,4 +26,5 @@ type AlbumRepository interface {
Put(m *Album) error
Get(id string) (*Album, error)
FindByArtist(artistId string) (Albums, error)
GetAll(QueryOptions) (Albums, error)
}