Documentation ¶
Index ¶
- func New(params ServiceParams) service.RegionCurrencyService
- type Service
- func (s *Service) GetActiveForDevelopers(ctx context.Context) ([]entity.RegionCurrency, error)
- func (s *Service) GetActiveForUsers(ctx context.Context) ([]entity.RegionCurrency, error)
- func (s *Service) GetAll(ctx context.Context) ([]entity.RegionCurrency, error)
- func (s *Service) GetByCode(ctx context.Context, code string) (*entity.RegionCurrency, error)
- func (s *Service) GetByID(ctx context.Context, id uint) (*entity.RegionCurrency, error)
- func (s *Service) GetByRegionAndCurrencyCodes(ctx context.Context, regionCode, currencyCode string) (*entity.RegionCurrency, error)
- func (s *Service) Update(ctx context.Context, id uint, isActiveForUsers, isActiveForDevelopers *bool) (*entity.RegionCurrency, error)
- type ServiceParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(params ServiceParams) service.RegionCurrencyService
Types ¶
type Service ¶
type Service struct {
ServiceParams
}
func (*Service) GetActiveForDevelopers ¶
func (*Service) GetActiveForUsers ¶
func (*Service) GetByRegionAndCurrencyCodes ¶
type ServiceParams ¶
type ServiceParams struct { fx.In CurrencyRepository repository.CurrencyRepository }
Click to show internal directories.
Click to hide internal directories.