Documentation
¶
Index ¶
- type Service
- func (s *Service) Create(ctx context.Context, lc *location.LocationCategory, userID pulid.ID) (*location.LocationCategory, error)
- func (s *Service) Get(ctx context.Context, opts repositories.GetLocationCategoryByIDOptions) (*location.LocationCategory, error)
- func (s *Service) List(ctx context.Context, opts *ports.LimitOffsetQueryOptions) (*ports.ListResult[*location.LocationCategory], error)
- func (s *Service) SelectOptions(ctx context.Context, opts *ports.LimitOffsetQueryOptions) ([]*types.SelectOption, error)
- func (s *Service) Update(ctx context.Context, lc *location.LocationCategory, userID pulid.ID) (*location.LocationCategory, error)
- type ServiceParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(p ServiceParams) *Service
func (*Service) Create ¶
func (s *Service) Create(ctx context.Context, lc *location.LocationCategory, userID pulid.ID) (*location.LocationCategory, error)
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, opts repositories.GetLocationCategoryByIDOptions) (*location.LocationCategory, error)
func (*Service) List ¶
func (s *Service) List(ctx context.Context, opts *ports.LimitOffsetQueryOptions) (*ports.ListResult[*location.LocationCategory], error)
func (*Service) SelectOptions ¶
func (s *Service) SelectOptions(ctx context.Context, opts *ports.LimitOffsetQueryOptions) ([]*types.SelectOption, error)
type ServiceParams ¶
type ServiceParams struct { fx.In Logger *logger.Logger Repo repositories.LocationCategoryRepository PermService services.PermissionService AuditService services.AuditService Validator *locationvalidator.LocationCategoryValidator }
Click to show internal directories.
Click to hide internal directories.