mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-20 12:01:24 +03:00
22 lines
385 B
Go
22 lines
385 B
Go
package engine
|
|
|
|
import (
|
|
"github.com/deluan/gosonic/domain"
|
|
)
|
|
|
|
type Playlists interface {
|
|
GetAll() (*domain.Playlists, error)
|
|
}
|
|
|
|
type playlists struct {
|
|
plsRepo domain.PlaylistRepository
|
|
}
|
|
|
|
func NewPlaylists(pr domain.PlaylistRepository) Playlists {
|
|
return playlists{pr}
|
|
}
|
|
|
|
func (p playlists) GetAll() (*domain.Playlists, error) {
|
|
return p.plsRepo.GetAll(domain.QueryOptions{})
|
|
}
|