2022-07-18 04:26:35 -05:00
|
|
|
package playlist
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Service interface {
|
|
|
|
Create(context.Context, *CreatePlaylistCommand) (*Playlist, error)
|
|
|
|
Update(context.Context, *UpdatePlaylistCommand) (*PlaylistDTO, error)
|
2022-10-04 10:11:18 -05:00
|
|
|
GetWithoutItems(context.Context, *GetPlaylistByUidQuery) (*Playlist, error)
|
|
|
|
Get(context.Context, *GetPlaylistByUidQuery) (*PlaylistDTO, error)
|
2022-07-18 04:26:35 -05:00
|
|
|
Search(context.Context, *GetPlaylistsQuery) (Playlists, error)
|
|
|
|
Delete(ctx context.Context, cmd *DeletePlaylistCommand) error
|
|
|
|
}
|