Documentation ¶
Index ¶
- func New(params ServiceParams) service.FeatureService
- type Service
- func (s *Service) Create(ctx context.Context, data *service.CreateFeatureData) (*entity.Feature, error)
- func (s *Service) Delete(ctx context.Context, id uint) error
- func (s *Service) GetAll(ctx context.Context) ([]entity.Feature, error)
- func (s *Service) GetByGameRevisionID(ctx context.Context, gameID uint) ([]entity.Feature, error)
- func (s *Service) GetByID(ctx context.Context, id uint) (*entity.Feature, error)
- func (s *Service) GetByIDs(ctx context.Context, ids []uint) ([]entity.Feature, error)
- func (s *Service) GetExistByID(ctx context.Context, id uint) (*entity.Feature, error)
- func (s *Service) Update(ctx context.Context, data *service.UpdateFeatureData) (*entity.Feature, error)
- func (s *Service) UpdateFeaturesForGameRevision(ctx context.Context, gameRevision *entity.GameRevision, featureIDs []uint) error
- type ServiceParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(params ServiceParams) service.FeatureService
Types ¶
type Service ¶
type Service struct {
ServiceParams
}
func (*Service) GetByGameRevisionID ¶
func (*Service) GetExistByID ¶
func (*Service) UpdateFeaturesForGameRevision ¶
type ServiceParams ¶
type ServiceParams struct { fx.In FeatureRepository repository.FeatureRepository GameRevisionFeatureRepository repository.GameRevisionFeatureRepository }
Click to show internal directories.
Click to hide internal directories.