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

export class EvaluationIndicatorDto extends CreateDto {
  @ApiProperty({ description: '评价指标名称' })
  @IsNotEmpty({ message: '评价指标不能为空' })
  name: string;

  @ApiProperty({ description: '所属评价 ID' })
  @IsNotEmpty({ message: '所属评价不能为空' })
  evaluationId: number;
}
