AlbumUseCase

package
v0.0.0-...-704a905 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL