import { ApiProperty } from '@nestjs/swagger';
import { IsString, MinLength } from 'class-validator';

export class RejectListingDto {
  @ApiProperty({ description: 'ID of the listing to reject', example: 'lst_abc123' })
  @IsString()
  listingId!: string;

  @ApiProperty({ description: 'Reason for rejection (min 5 chars)', example: 'Listing contains misleading information', minLength: 5 })
  @IsString()
  @MinLength(5)
  reason!: string;
}
