Documentation
¶
Index ¶
- type Service
- func (s *Service) Get(ctx context.Context, opts repositories.GetUserByIDOptions) (*user.User, error)
- func (s *Service) List(ctx context.Context, opts *ports.LimitOffsetQueryOptions) (*ports.ListResult[*user.User], error)
- func (s *Service) SelectOptions(ctx context.Context, opts *ports.LimitOffsetQueryOptions) ([]*types.SelectOption, 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) Get ¶
func (s *Service) Get(ctx context.Context, opts repositories.GetUserByIDOptions) (*user.User, error)
func (*Service) List ¶
func (s *Service) List(ctx context.Context, opts *ports.LimitOffsetQueryOptions) (*ports.ListResult[*user.User], 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.UserRepository PermService services.PermissionService }
Click to show internal directories.
Click to hide internal directories.