import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { ListingStatus } from '@prisma/client';
import { IsEnum, IsOptional, IsString } from 'class-validator';

export class UpdateListingStatusDto {
  @ApiProperty({ enum: ListingStatus, example: 'ACTIVE', description: 'New listing status' })
  @IsEnum(ListingStatus)
  status!: ListingStatus;

  @ApiPropertyOptional({ example: 'Đã xác minh thông tin pháp lý', description: 'Optional moderation notes' })
  @IsOptional()
  @IsString()
  moderationNotes?: string;
}
