Documentation ¶
Index ¶
- func New(params ServiceParams) service.GameLicenseService
- type Service
- func (s *Service) Create(ctx context.Context, data *service.CreateGameLicenseData) (*entity.GameLicense, error)
- func (s *Service) GetByGameID(ctx context.Context, gameID string) ([]entity.GameLicense, error)
- func (s *Service) GetByGameIDAndUserID(ctx context.Context, gameID, userID string) (*entity.GameLicense, error)
- func (s *Service) GetByUserID(ctx context.Context, userID string) ([]entity.GameLicense, error)
- type ServiceParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(params ServiceParams) service.GameLicenseService
Types ¶
type Service ¶
type Service struct {
ServiceParams
}
func (*Service) Create ¶
func (s *Service) Create(ctx context.Context, data *service.CreateGameLicenseData) (*entity.GameLicense, error)
func (*Service) GetByGameID ¶
func (*Service) GetByGameIDAndUserID ¶
func (*Service) GetByUserID ¶
type ServiceParams ¶
type ServiceParams struct { fx.In GameLicenseRepository repository.GameLicenseRepository }
Click to show internal directories.
Click to hide internal directories.