import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';
import { CreateDto } from 'src/common/dto/create.dto';

export class ResourceClassifyDto extends CreateDto {
  @ApiProperty({ description: '资源类型名称' })
  @IsNotEmpty({ message: '资源类型名称不能为空' })
  name: string;

  @ApiProperty({ description: '上级资源类型' })
  @IsNotEmpty({ message: '请选择上级资源类型' })
  pid: number;
}
