mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
18 lines
634 B
Go
18 lines
634 B
Go
package playlist
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Service interface {
|
|
Create(context.Context, *CreatePlaylistCommand) (*Playlist, error)
|
|
Update(context.Context, *UpdatePlaylistCommand) (*PlaylistDTO, error)
|
|
GetWithoutItems(context.Context, *GetPlaylistByUidQuery) (*Playlist, error)
|
|
Get(context.Context, *GetPlaylistByUidQuery) (*PlaylistDTO, error)
|
|
Search(context.Context, *GetPlaylistsQuery) (Playlists, error)
|
|
Delete(ctx context.Context, cmd *DeletePlaylistCommand) error
|
|
|
|
// This is optimized for the kubernetes list command that returns full bodies in the list
|
|
List(ctx context.Context, orgId int64) ([]PlaylistDTO, error)
|
|
}
|