Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPlaylistUseCase ¶
func NewPlaylistUseCase(playlistAgent domain.PlaylistAgent, artistAgent domain.ArtistAgent, trackAgent domain.TrackAgent) *playlistUseCase
Types ¶
type PlaylistUseCase ¶
type PlaylistUseCase interface { GetAllOfCurrentUser(userId int64) ([]*playlistProto.PlaylistDataTransfer, error) GetAll(userId int64) ([]*playlistProto.PlaylistDataTransfer, error) GetLastIdOfCurrentUser(userId int64) (int64, error) GetLastId() (int64, error) Create(userId int64, playlist *playlistProto.Playlist) error Update(userId int64, playlist *playlistProto.Playlist) error Delete(userId int64, playlistId int64) error GetByIdOfCurrentUser(userId int64, playlistId int64) (*playlistProto.PlaylistDataTransfer, error) GetById(playlistId int64, userId int64) (*playlistProto.PlaylistDataTransfer, error) GetSizeOfCurrentUser(userId int64) (int64, error) GetSize() (int64, error) AddToPlaylist(userId int64, playlistId int64, trackId int64) error RemoveFromPlaylist(userId int64, playlistId int64, trackId int64) error }
Click to show internal directories.
Click to hide internal directories.