add find user by roles

This commit is contained in:
2021-12-08 11:06:26 +07:00
parent a418e74db5
commit 10984f65a5
4 changed files with 34 additions and 3 deletions

View File

@@ -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;
}