import { ApiProperty } from '@nestjs/swagger';
import { isNotEmpty, IsNotEmpty, IsNumber, IsString } from 'class-validator';
import { CreateDto } from 'src/common/dto/create.dto';
export class CreateLiveclassifyDto extends CreateDto {
  @ApiProperty({ description: '分类父级ID', default: 0 })
  @IsNotEmpty({ message: '分类父级ID不可为空' })
  @IsNumber()
  pid: number;

  @ApiProperty({ description: '分类名称', default: '新增的分类' })
  @IsNotEmpty({ message: '分类名称不可为空' })
  name: string;

  @ApiProperty({ description: '分类层级', default: 1 })
  @IsNotEmpty({ message: '分类层级不可为空' })
  @IsNumber()
  level: number;
}
