mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-15 11:40:36 +03:00
23 lines
415 B
Go
23 lines
415 B
Go
package domain
|
|
|
|
type Playlist struct {
|
|
Id string
|
|
Name string
|
|
Comment string
|
|
FullPath string
|
|
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
|