Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewArtistUseCase ¶
func NewArtistUseCase(albumAgent domain.AlbumAgent, artistAgent domain.ArtistAgent, trackAgent domain.TrackAgent) *artistUseCase
Types ¶
type ArtistUseCase ¶
type ArtistUseCase interface { GetAll(userId int64) ([]*artistProto.ArtistDataTransfer, error) GetLastId() (int64, error) Create(transfer *artistProto.Artist) error Update(transfer *artistProto.Artist) error Delete(int64) error GetById(artistId int64, userId int64) (*artistProto.ArtistDataTransfer, error) GetPopular(userId int64) ([]*artistProto.ArtistDataTransfer, error) GetSize() (int64, error) SearchByName(userId int64, name string) ([]*artistProto.ArtistDataTransfer, error) GetFavorites(int64) ([]*artistProto.ArtistDataTransfer, error) AddToFavorites(userId int64, artistId int64) error RemoveFromFavorites(userId int64, artistId int64) error Like(arg int64, userId int64) error LikeCheckByUser(arg int64, userId int64) (bool, error) }
Click to show internal directories.
Click to hide internal directories.