Documentation
¶
Overview ¶
Package role provides application services for role management.
Index ¶
- type Service
- func (s *Service) CreateRole(ctx context.Context, apiRole *v1.Role) (*v1.Role, error)
- func (s *Service) DeleteRole(ctx context.Context, uid uuid.UUID) error
- func (s *Service) GetRole(ctx context.Context, uid uuid.UUID) (*v1.Role, error)
- func (s *Service) ListRoles(ctx context.Context, options *model.ListOptions) (*v1.ListResponse[v1.Role], error)
- func (s *Service) UpdateRole(ctx context.Context, uid uuid.UUID, apiRole *v1.Role) (*v1.Role, error)
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
}
Service is a struct that implements the RoleManageUsecase interface.
func New ¶
func New(roleUsecase userport.RoleUsecase, logger *slog.Logger) *Service
New creates a new instance of the Service struct.
func (*Service) CreateRole ¶
CreateRole implements applicationport.RoleManageUsecase.
func (*Service) DeleteRole ¶
DeleteRole implements applicationport.RoleManageUsecase.
func (*Service) GetRole ¶
GetRole implements applicationport.RoleManageUsecase.
func (*Service) ListRoles ¶
func (s *Service) ListRoles( ctx context.Context, options *model.ListOptions, ) (*v1.ListResponse[v1.Role], error)
ListRoles implements applicationport.RoleManageUsecase.
Click to show internal directories.
Click to hide internal directories.