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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user