Initial wiring for getPlaylists endpoint
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user