import { ApiProperty } from '@nestjs/swagger';
import { IsIn, IsNotEmpty, IsOptional } from 'class-validator';
import { NewsCommentStatus } from '../entities/news-comment.entity';

export class UpdateStatusCommentDto {
  @ApiProperty({ required: true })
  @IsNotEmpty()
  @IsIn(Object.values(NewsCommentStatus))
  status: NewsCommentStatus;

  @ApiProperty({ required: false })
  @IsOptional()
  reasonRejected?: string;
}
