Initial wiring for getPlaylists endpoint

This commit is contained in:
Deluan
2016-03-09 10:09:15 -05:00
parent 4d1a4613d9
commit 7161325716
8 changed files with 185 additions and 3 deletions
+17
View File
@@ -0,0 +1,17 @@
package domain
type Playlist struct {
Id string
Name string
Tracks []string
}
type PlaylistRepository interface {
BaseRepository
Put(m *Playlist) error
Get(id string) (*Playlist, error)
GetAll(options QueryOptions) (*Playlists, error)
PurgeInactive(active *Playlists) error
}
type Playlists []Playlist