Documentation
¶
Index ¶
- func New(params ServiceParams) service.GameService
- type Service
- func (s *Service) Create(ctx context.Context, data *service.CreateGameData) (*entity.Game, error)
- func (s *Service) Delete(ctx context.Context, id string) error
- func (s *Service) GetByFilter(ctx context.Context, data *service.GetByFilterGameData) ([]entity.Game, error)
- func (s *Service) GetByID(ctx context.Context, id string) (*entity.Game, error)
- func (s *Service) GetBySKU(ctx context.Context, sku string) (*entity.Game, error)
- func (s *Service) GetBySlug(ctx context.Context, slug string) (*entity.Game, error)
- func (s *Service) GetCountByFilter(ctx context.Context, data *service.GetByFilterGameData) (int, error)
- func (s *Service) GetExByFilter(ctx context.Context, data *service.GetByFilterGameData) ([]entity.GameEx, error)
- func (s *Service) GetExByID(ctx context.Context, id string) (*entity.GameEx, error)
- func (s *Service) GetExBySlug(ctx context.Context, slug string) (*entity.GameEx, error)
- func (s *Service) GetExLastPublishedByID(ctx context.Context, id string) (*entity.GameEx, error)
- func (s *Service) GetExLastPublishedBySKU(ctx context.Context, sku string) (*entity.GameEx, error)
- func (s *Service) Publish(ctx context.Context, id string) error
- func (s *Service) Update(ctx context.Context, data *service.UpdateGameData) (*entity.GameEx, error)
- type ServiceParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(params ServiceParams) service.GameService
Types ¶
type Service ¶
type Service struct {
ServiceParams
}
func (*Service) GetByFilter ¶
func (*Service) GetCountByFilter ¶
func (*Service) GetExByFilter ¶
func (*Service) GetExBySlug ¶
func (*Service) GetExLastPublishedByID ¶
func (*Service) GetExLastPublishedBySKU ¶
type ServiceParams ¶
type ServiceParams struct { fx.In GameRevisionService service.GameRevisionService GameStorePublishService service.GameStorePublishService TagService service.TagService FeatureService service.FeatureService GenreService service.GenreService GameRepository repository.GameRepository GameExRepository repository.GameRevisionExRepository Transactor *transactor.Transactor Stool stoolint.StoolInternalClient }
Click to show internal directories.
Click to hide internal directories.