import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsNumber, IsString } from 'class-validator';
import { CreateDto } from 'src/common/dto/create.dto';
/**
 * 学员课件学习信息
 */
export class AnswerDto extends CreateDto {
  @ApiProperty({ description: '当前回答ID' })
  @IsNotEmpty({ message: '当前回答ID不可为空' })
  @IsNumber()
  id: number;

  @ApiProperty({ description: '当前问题ID' })
  @IsNotEmpty({ message: '当前问题ID不可为空' })
  @IsNumber()
  issuesId: number;

  @ApiProperty({ description: '回复内容' })
  @IsNotEmpty({ message: '回复内容不可为空' })
  content: string;
}
