import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsNumber } from 'class-validator';
import { CreateDto } from 'src/common/dto/create.dto';
/**
 * 学员讨论信息
 */
export class CourseStudyDiscussionDto extends CreateDto {
  @ApiProperty({ description: '所属的记录ID' })
  @IsNotEmpty({ message: '所属的记录ID不能为空' })
  @IsNumber()
  recordId: number;

  @ApiProperty({ description: '所回复的评论id' })
  // @IsNotEmpty({ message: '所回复的评论id不能为空' })
  replyId: number;

  @ApiProperty({ description: '所回复评论的用户id' })
  // @IsNotEmpty({ message: '所回复评论的用户id不能为空' })
  replyUserId: string;
  @ApiProperty({ description: '所回复评论内容' })
  @IsNotEmpty({ message: '所回复评论内容不能为空' })
  content: string;

  @ApiProperty({ description: '所回复评论的根ID' })
  rootDis: number;
}

export class updateStudyDiscussionkudoDto extends CreateDto {
  @ApiProperty({ description: '更新的id可为空' })
  id: number;
  @ApiProperty({ description: '讨论的id可为空' })
  disId: number;
  @ApiProperty({ description: '点赞或踩' })
  type: number;
}
