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

export class CreateStudentOnlineExamDto extends CreateDto {
  @ApiProperty({ description: '学员ID' })
  @IsNotEmpty({ message: '学员Id不能为空' })
  userId: string;

  @ApiProperty({ description: '考试Id', default: 0 })
  @IsNotEmpty({ message: '考试ID不能为空' })
  examId: number;

  @ApiProperty({ description: '错题数', default: 0 })
  mistakes: number;

  @ApiProperty({ description: '考试允许次数', default: 3 })
  examTimes: number;

  @ApiProperty({ description: '是否删除', default: 0 })
  delFlag: number;

  // @ApiProperty({ description: '我已考试次数', default: 0 })
  // myExamTimes: number;

  // @ApiProperty({ description: '对于学员的考试状态', default: 1 })
  // status: number;
}
