game

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

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

func (s *Service) Create(ctx context.Context, data *service.CreateGameData) (*entity.Game, error)

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, id string) error

func (*Service) GetByFilter

func (s *Service) GetByFilter(ctx context.Context, data *service.GetByFilterGameData) ([]entity.Game, error)

func (*Service) GetByID

func (s *Service) GetByID(ctx context.Context, id string) (*entity.Game, error)

func (*Service) GetBySKU

func (s *Service) GetBySKU(ctx context.Context, sku string) (*entity.Game, error)

func (*Service) GetBySlug

func (s *Service) GetBySlug(ctx context.Context, slug string) (*entity.Game, error)

func (*Service) GetCountByFilter

func (s *Service) GetCountByFilter(ctx context.Context, data *service.GetByFilterGameData) (int, error)

func (*Service) GetExByFilter

func (s *Service) GetExByFilter(ctx context.Context, data *service.GetByFilterGameData) ([]entity.GameEx, error)

func (*Service) GetExByID

func (s *Service) GetExByID(ctx context.Context, id string) (*entity.GameEx, error)

func (*Service) GetExBySlug

func (s *Service) GetExBySlug(ctx context.Context, slug string) (*entity.GameEx, error)

func (*Service) GetExLastPublishedByID

func (s *Service) GetExLastPublishedByID(ctx context.Context, id string) (*entity.GameEx, error)

func (*Service) GetExLastPublishedBySKU

func (s *Service) GetExLastPublishedBySKU(ctx context.Context, sku string) (*entity.GameEx, error)

func (*Service) Publish

func (s *Service) Publish(ctx context.Context, id string) error

func (*Service) Update

func (s *Service) Update(ctx context.Context, data *service.UpdateGameData) (*entity.GameEx, error)

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
}

Jump to

Keyboard shortcuts

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