Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAlbumUseCase ¶
func NewAlbumUseCase(albumAgent domain.AlbumAgent, artistAgent domain.ArtistAgent, trackAgent domain.TrackAgent) *albumUseCase
Types ¶
type AlbumUseCase ¶
type AlbumUseCase interface { GetAll(userId int64) ([]*albumProto.AlbumDataTransfer, error) GetAllCovers() ([]*albumProto.AlbumCoverDataTransfer, error) GetLastId() (int64, error) GetLastCoverId() (int64, error) Create(*albumProto.Album) error CreateCover(*albumProto.AlbumCover) error Update(*albumProto.Album) error UpdateCover(*albumProto.AlbumCover) error Delete(int64) error DeleteCover(int64) error GetById(userId int64, albumId int64) (*albumProto.AlbumDataTransfer, error) GetCoverById(int64) (*albumProto.AlbumCoverDataTransfer, error) GetPopular(userId int64) ([]*albumProto.AlbumDataTransfer, error) GetAlbumsFromArtist(userId int64, artistId int64) ([]*albumProto.AlbumDataTransfer, error) GetSize() (int64, error) SearchByTitle(userId int64, title string) ([]*albumProto.AlbumDataTransfer, error) GetFavorites(userId int64) ([]*albumProto.AlbumDataTransfer, error) AddToFavorites(userId int64, albumId int64) error RemoveFromFavorites(userId int64, albumId int64) error Like(arg int64, userId int64) error LikeCheckByUser(arg int64, userId int64) (bool, error) GetPopularAlbumOfWeek(userId int64) ([]*albumProto.AlbumDataTransfer, error) }
Click to show internal directories.
Click to hide internal directories.