import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsNumber, IsString } from 'class-validator';
import { CreateDto } from 'src/common/dto/create.dto';
/**
 * 学员课件学习信息
 */
export class createIssuesDto extends CreateDto {
  @ApiProperty({ description: '问题名称' })
  @IsNotEmpty({ message: '问题名称不可为空' })
  @IsString()
  title: string;

  @ApiProperty({ description: '问题描述' })
  @IsString()
  content: string;

  @ApiProperty({ description: '问题描述' })
  answerPersonIds: string[];
}
export class updateIssuesDto extends CreateDto {
  @ApiProperty({ description: '问题ID' })
  id: number;

  @ApiProperty({ description: '问题名称' })
  title: string;

  @ApiProperty({ description: '问题描述' })
  content: string;

  @ApiProperty({ description: '解答人ID数组' })
  answerPersonIds: string[];

  @ApiProperty({ description: '删除掉的解答人ID数组' })
  delAnswerPersonIds: string[];
}
