import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger"
import { IsNumberString, IsOptional, IsString } from "class-validator"

export class GetCitiesDTO {
    @ApiProperty()
    @IsNumberString()
    region_id: number

    @ApiPropertyOptional()
    @IsNumberString()
    @IsOptional()
    limit?: number

    @ApiPropertyOptional()
    @IsNumberString()
    @IsOptional()
    offset?: number

    @ApiPropertyOptional()
    @IsString()
    @IsOptional()
    search?: string

    @ApiPropertyOptional()
    @IsNumberString()
    @IsOptional()
    id?: number
}