2022-07-18 12:26:35 +03:00
|
|
|
package playlist
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Service interface {
|
|
|
|
Create(context.Context, *CreatePlaylistCommand) (*Playlist, error)
|
|
|
|
Update(context.Context, *UpdatePlaylistCommand) (*PlaylistDTO, error)
|
2022-10-04 08:11:18 -07:00
|
|
|
GetWithoutItems(context.Context, *GetPlaylistByUidQuery) (*Playlist, error)
|
|
|
|
Get(context.Context, *GetPlaylistByUidQuery) (*PlaylistDTO, error)
|
2022-07-18 12:26:35 +03:00
|
|
|
Search(context.Context, *GetPlaylistsQuery) (Playlists, error)
|
|
|
|
Delete(ctx context.Context, cmd *DeletePlaylistCommand) error
|
2023-12-21 15:03:12 -08:00
|
|
|
|
|
|
|
// This is optimized for the kubernetes list command that returns full bodies in the list
|
|
|
|
List(ctx context.Context, orgId int64) ([]PlaylistDTO, error)
|
2022-07-18 12:26:35 +03:00
|
|
|
}
|