navidrome/model/playlist.go

24 lines
471 B
Go
Raw Normal View History

2020-01-15 04:22:34 +01:00
package model
type Playlist struct {
ID string
Name string
2016-03-24 18:28:20 +01:00
Comment string
Duration float32
2016-03-21 17:26:55 +01:00
Owner string
Public bool
Tracks MediaFiles
}
type PlaylistRepository interface {
CountAll() (int64, error)
Exists(id string) (bool, error)
Put(pls *Playlist) error
Get(id string) (*Playlist, error)
GetWithTracks(id string) (*Playlist, error)
GetAll(options ...QueryOptions) (Playlists, error)
Delete(id string) error
}
type Playlists []Playlist