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

export class CreateQuestionTypeDto extends CreateDto {
  @ApiProperty({ description: '试题类型' })
  @IsNotEmpty({ message: '试题类型名不能为空' })
  name: string;

  @ApiProperty({ description: '元素类型' })
  element: string;
}
