import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsNumber, IsString } from 'class-validator';
import { CreateDto } from 'src/common/dto/create.dto';
/**
 * 学员课件学习信息
 */
export class CourseNotesDto extends CreateDto {
  @ApiProperty({ description: '笔记简介' })
  @IsNotEmpty({ message: '笔记简介不可为空' })
  @IsString()
  explain: string;

  @ApiProperty({ description: '笔记简介' })
  @IsNotEmpty({ message: '笔记标题不可为空' })
  @IsString()
  title: string;

  @ApiProperty({ description: '笔记内容' })
  @IsString()
  content: string;
}
export class updateNoteDto {
  @ApiProperty({ description: ' 笔记简介' })
  explain: string;

  @ApiProperty({ description: '笔记简介' })
  title: string;

  @ApiProperty({ description: '笔记内容' })
  content: string;
}
