navidrome/model/playlist.go

22 lines
410 B
Go
Raw Normal View History

2020-01-14 22:22:34 -05:00
package model
type Playlist struct {
ID string
Name string
2016-03-24 13:28:20 -04:00
Comment string
FullPath string
2016-03-21 12:26:55 -04:00
Duration int
Owner string
Public bool
Tracks []string
}
type PlaylistRepository interface {
CountAll() (int64, error)
Exists(id string) (bool, error)
Put(m *Playlist) error
Get(id string) (*Playlist, error)
GetAll(options ...QueryOptions) (Playlists, error)
}
type Playlists []Playlist