feature

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Service

type Service struct {
	ServiceParams
}

func (*Service) Create

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

func (*Service) Delete

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

func (*Service) GetAll

func (s *Service) GetAll(ctx context.Context) ([]entity.Feature, error)

func (*Service) GetByGameRevisionID

func (s *Service) GetByGameRevisionID(ctx context.Context, gameID uint) ([]entity.Feature, error)

func (*Service) GetByID

func (s *Service) GetByID(ctx context.Context, id uint) (*entity.Feature, error)

func (*Service) GetByIDs

func (s *Service) GetByIDs(ctx context.Context, ids []uint) ([]entity.Feature, error)

func (*Service) GetExistByID

func (s *Service) GetExistByID(ctx context.Context, id uint) (*entity.Feature, error)

func (*Service) Update

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

func (*Service) UpdateFeaturesForGameRevision

func (s *Service) UpdateFeaturesForGameRevision(ctx context.Context, gameRevision *entity.GameRevision, featureIDs []uint) error

type ServiceParams

type ServiceParams struct {
	fx.In

	FeatureRepository             repository.FeatureRepository
	GameRevisionFeatureRepository repository.GameRevisionFeatureRepository
}

Jump to

Keyboard shortcuts

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