Documentation
¶
Index ¶
- func New(params ServiceParams) service.TagService
- type Service
- func (s *Service) Create(ctx context.Context, data *service.CreateTagData) (*entity.Tag, error)
- func (s *Service) Delete(ctx context.Context, id uint) error
- func (s *Service) GetAll(ctx context.Context) ([]entity.Tag, error)
- func (s *Service) GetByGameRevisionID(ctx context.Context, gameID uint) ([]entity.Tag, error)
- func (s *Service) GetByID(ctx context.Context, id uint) (*entity.Tag, error)
- func (s *Service) GetByIDs(ctx context.Context, ids []uint) ([]entity.Tag, error)
- func (s *Service) GetExistByID(ctx context.Context, id uint) (*entity.Tag, error)
- func (s *Service) Update(ctx context.Context, data *service.UpdateTagData) (*entity.Tag, error)
- func (s *Service) UpdateTagsForGameRevision(ctx context.Context, gameRevision *entity.GameRevision, tagIDs []uint) error
- type ServiceParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(params ServiceParams) service.TagService
Types ¶
type Service ¶
type Service struct {
ServiceParams
}
func (*Service) GetByGameRevisionID ¶
func (*Service) GetExistByID ¶
func (*Service) UpdateTagsForGameRevision ¶
type ServiceParams ¶
type ServiceParams struct { fx.In TagRepository repository.TagRepository GameRevisionTagRepository repository.GameRevisionTagRepository }
Click to show internal directories.
Click to hide internal directories.