ArtistUseCase

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: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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