add find user by roles
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IsNotEmpty } from 'class-validator';
|
||||
import { IsNotEmpty, IsUUID } from 'class-validator';
|
||||
|
||||
export class CreateUserDto {
|
||||
@IsNotEmpty()
|
||||
@@ -6,4 +6,10 @@ export class CreateUserDto {
|
||||
|
||||
@IsNotEmpty()
|
||||
password: string;
|
||||
|
||||
@IsUUID()
|
||||
roleId: string;
|
||||
|
||||
@IsUUID()
|
||||
superior: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user