Documentation ¶
Index ¶
- func New(params ServiceParams) service.GenreService
- type Service
- func (s *Service) Create(ctx context.Context, data *service.CreateGenreData) (*entity.Genre, error)
- func (s *Service) Delete(ctx context.Context, id uint) error
- func (s *Service) GetAll(ctx context.Context) ([]entity.Genre, error)
- func (s *Service) GetByGameRevisionID(ctx context.Context, gameID uint) ([]entity.Genre, error)
- func (s *Service) GetByID(ctx context.Context, id uint) (*entity.Genre, error)
- func (s *Service) GetByIDs(ctx context.Context, ids []uint) ([]entity.Genre, error)
- func (s *Service) GetExistByID(ctx context.Context, id uint) (*entity.Genre, error)
- func (s *Service) Update(ctx context.Context, data *service.UpdateGenreData) (*entity.Genre, error)
- func (s *Service) UpdateGenresForGameRevision(ctx context.Context, gameRevision *entity.GameRevision, genreIDs []uint) error
- type ServiceParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(params ServiceParams) service.GenreService
Types ¶
type Service ¶
type Service struct {
ServiceParams
}
func (*Service) GetByGameRevisionID ¶
func (*Service) GetExistByID ¶
func (*Service) UpdateGenresForGameRevision ¶
type ServiceParams ¶
type ServiceParams struct { fx.In GenreRepository repository.GenreRepository GameRevisionGenreRepository repository.GameRevisionGenreRepository }
Click to show internal directories.
Click to hide internal directories.