Documentation
¶
Index ¶
- func New(params ServiceParams) service.StorefrontService
- type Service
- func (s *Service) Activate(ctx context.Context, id uint) error
- func (s *Service) Create(ctx context.Context, data *service.CreateStorefrontData) (*entity.Storefront, error)
- func (s *Service) Delete(ctx context.Context, id uint) error
- func (s *Service) GetActive(ctx context.Context) (*entity.Storefront, error)
- func (s *Service) GetByFilter(ctx context.Context, data *service.GetByFilterStorefrontData) ([]entity.Storefront, error)
- func (s *Service) GetByID(ctx context.Context, id uint) (*entity.Storefront, error)
- func (s *Service) GetCountByFilter(ctx context.Context) (int, error)
- func (s *Service) Update(ctx context.Context, data *service.UpdateStorefrontData) (*entity.Storefront, error)
- type ServiceParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(params ServiceParams) service.StorefrontService
Types ¶
type Service ¶
type Service struct {
ServiceParams
}
func (*Service) Create ¶
func (s *Service) Create(ctx context.Context, data *service.CreateStorefrontData) (*entity.Storefront, error)
func (*Service) GetByFilter ¶
func (s *Service) GetByFilter(ctx context.Context, data *service.GetByFilterStorefrontData) ([]entity.Storefront, error)
func (*Service) GetCountByFilter ¶
func (*Service) Update ¶
func (s *Service) Update(ctx context.Context, data *service.UpdateStorefrontData) (*entity.Storefront, error)
type ServiceParams ¶
type ServiceParams struct { fx.In GameRevisionService service.GameRevisionService StoreFrontRepository repository.StoreFrontRepository Transactor *transactor.Transactor }
Click to show internal directories.
Click to hide internal directories.