import { IsString, IsOptional } from 'class-validator';
import { Type } from 'class-transformer';

export class QueryRoomDto {
  @IsOptional()
  @Type(() => Number)
  page?: number = 1;

  @IsOptional()
  @Type(() => Number)
  pageSize?: number = 10;

  @IsOptional()
  @IsString()
  keyword?: string;

  @IsOptional()
  @IsString()
  auditStatus?: string;

  @IsOptional()
  @Type(() => Number)
  merchantId?: number;
}
