Files
navidrome/domain/playlist.go
T
Deluan 3790aa45e4 Refactored PurgeInactive as a "generic" function.
Also delete indexes when removing records
2016-03-18 19:32:49 -04:00

19 lines
341 B
Go

package domain
type Playlist struct {
Id string
Name string
FullPath 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