feat: first commit
This commit is contained in:
12
server/src/system/role/dto/create-role.dto.ts
Normal file
12
server/src/system/role/dto/create-role.dto.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { IsNotEmpty, IsNumber, IsOptional } from 'class-validator';
|
||||
|
||||
export class CreateRoleDto {
|
||||
@IsOptional()
|
||||
name: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
code: string;
|
||||
|
||||
@IsNumber()
|
||||
status: number;
|
||||
}
|
||||
Reference in New Issue
Block a user