import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsIn, IsNumber, IsOptional, IsString, Max, Min } from 'class-validator';

export class ModerateTransferListingDto {
  @ApiProperty({ enum: ['approve', 'reject'], description: 'Hành động kiểm duyệt' })
  @IsIn(['approve', 'reject'])
  action!: 'approve' | 'reject';

  @ApiPropertyOptional({ description: 'Điểm kiểm duyệt (0-100)', minimum: 0, maximum: 100 })
  @IsOptional()
  @IsNumber()
  @Min(0)
  @Max(100)
  moderationScore?: number;

  @ApiPropertyOptional({ description: 'Ghi chú kiểm duyệt' })
  @IsOptional()
  @IsString()
  notes?: string;
}
