Documentation
¶
Overview ¶
Package user provides application services for user management.
Index ¶
- type Service
- func (s *Service) CreateUser(ctx context.Context, apiUser *v1.User) (*v1.User, error)
- func (s *Service) DeleteUser(ctx context.Context, uid uuid.UUID) error
- func (s *Service) GetUser(ctx context.Context, uid uuid.UUID) (*v1.User, error)
- func (s *Service) GetUserByEmail(ctx context.Context, email string) (*v1.User, error)
- func (s *Service) GetUserProfile(ctx context.Context, email string) (*v1.UserProfileResponse, error)
- func (s *Service) ListUsers(ctx context.Context, options *model.ListOptions) (*v1.ListResponse[v1.User], 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 UserManageUsecase interface.
func New ¶
func New( userUsecase userport.UserUsecase, userRoleUsecase userport.UserRoleUsecase, rbacUsecase userport.RBACUsecase, logger *slog.Logger, ) *Service
New creates a new instance of the Service struct.
func (*Service) CreateUser ¶
CreateUser implements applicationport.UserManageUsecase.
func (*Service) DeleteUser ¶
DeleteUser implements applicationport.UserManageUsecase.
func (*Service) GetUser ¶
GetUser implements applicationport.UserManageUsecase.
func (*Service) GetUserByEmail ¶
GetUserByEmail implements applicationport.UserManageUsecase.
func (*Service) GetUserProfile ¶
func (s *Service) GetUserProfile(ctx context.Context, email string) (*v1.UserProfileResponse, error)
GetUserProfile implements applicationport.UserManageUsecase.
func (*Service) ListUsers ¶
func (s *Service) ListUsers( ctx context.Context, options *model.ListOptions, ) (*v1.ListResponse[v1.User], error)
ListUsers implements applicationport.UserManageUsecase.
Click to show internal directories.
Click to hide internal directories.