import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsEnum, IsOptional, IsString, MaxLength } from 'class-validator';
import { ModerationStatus } from '../../../common/enums/moderation-status.enum';

export class UpdateContentModerationStatusDto {
  @ApiProperty({ enum: ModerationStatus })
  @IsEnum(ModerationStatus)
  status!: ModerationStatus;

  @ApiPropertyOptional({ maxLength: 300 })
  @IsOptional()
  @IsString()
  @MaxLength(300)
  reason?: string;
}
