navidrome/domain/playlist.go

23 lines
418 B
Go
Raw Normal View History

package domain
type Playlist struct {
ID string
Name string
2016-03-24 18:28:20 +01:00
Comment string
FullPath string
2016-03-21 17:26:55 +01:00
Duration int
Owner string
Public bool
Tracks []string
}
type PlaylistRepository interface {
BaseRepository
Put(m *Playlist) error
Get(id string) (*Playlist, error)
GetAll(options ...QueryOptions) (Playlists, error)
PurgeInactive(active Playlists) ([]string, error)
}
type Playlists []Playlist