mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-22 13:19:08 +00:00
FEAT: new user endpoints
This commit is contained in:
@@ -14,7 +14,7 @@ export class RoleDto {
|
||||
@ApiPropertyOptional({ type: () => [PermissionDto] })
|
||||
permissions: PermissionDto[];
|
||||
@ApiPropertyOptional({ type: () => [UserNoRolesAndCustomer] })
|
||||
users: UserNoRolesAndCustomer[];
|
||||
users?: UserNoRolesAndCustomer[];
|
||||
@ApiProperty()
|
||||
createdAt: string;
|
||||
@ApiProperty()
|
||||
@@ -24,6 +24,7 @@ export class RoleDto {
|
||||
}
|
||||
|
||||
export class CustomerRole extends OmitType(RoleDto, ['customer']) {}
|
||||
export class UserRole extends OmitType(RoleDto, ['users']) {}
|
||||
|
||||
export enum TrueOrFalseEnum {
|
||||
true = 'true',
|
||||
|
||||
Reference in New Issue
Block a user