Documentation
¶
Index ¶
- type IAdmin
- type InvitedUser
- type Service
- func (o *Service) BanUserByID(ctx context.Context, userID uuid.UUID) (*admin_response.BanUserResponse, error)
- func (o *Service) GetAllUsersFiltered(ctx context.Context, req admin_request.GetUsersRequest) (*storecmn.FindResponseWithFullPagination[*admin_response.GetUsersResponse], ...)
- func (o *Service) InviteUserWithRole(ctx context.Context, req *admin_request.InviteUserWithRoleRequest) (*InvitedUser, error)
- func (o *Service) UnbanUserByID(ctx context.Context, userID uuid.UUID) (*admin_response.UnbanUserResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAdmin ¶
type IAdmin interface {
GetAllUsersFiltered(ctx context.Context, req admin_request.GetUsersRequest) (*storecmn.FindResponseWithFullPagination[*admin_response.GetUsersResponse], error)
BanUserByID(ctx context.Context, userID uuid.UUID) (*admin_response.BanUserResponse, error)
UnbanUserByID(ctx context.Context, userID uuid.UUID) (*admin_response.UnbanUserResponse, error)
InviteUserWithRole(ctx context.Context, request *admin_request.InviteUserWithRoleRequest) (*InvitedUser, error)
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New( cfg *config.Config, storage storage.IStorage, logger logger.Logger, permissionService permission.IPermission, userService user.IUser, notificationSvc notify.INotificationService, ) *Service
func (*Service) BanUserByID ¶
func (o *Service) BanUserByID(ctx context.Context, userID uuid.UUID) (*admin_response.BanUserResponse, error)
func (*Service) GetAllUsersFiltered ¶
func (o *Service) GetAllUsersFiltered(ctx context.Context, req admin_request.GetUsersRequest) (*storecmn.FindResponseWithFullPagination[*admin_response.GetUsersResponse], error)
func (*Service) InviteUserWithRole ¶
func (o *Service) InviteUserWithRole(ctx context.Context, req *admin_request.InviteUserWithRoleRequest) (*InvitedUser, error)
func (*Service) UnbanUserByID ¶
func (o *Service) UnbanUserByID(ctx context.Context, userID uuid.UUID) (*admin_response.UnbanUserResponse, error)
Click to show internal directories.
Click to hide internal directories.