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

export class UpdateKnowledgePointDto extends CreateDto {
  @ApiProperty({ description: '知识点ID' })
  @IsNotEmpty({ message: '知识点ID不能为空' })
  id: number;

  @ApiProperty({ description: '知识点名' })
  @IsNotEmpty({ message: '知识点名不能为空' })
  name: string;
}
