import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; import { IsNumber, IsOptional, IsString, Max, Min } from 'class-validator'; import { Type } from 'class-transformer'; export class AnalyzeIndustrialLocationDto { @ApiProperty({ example: 10.9, description: 'Vĩ độ' }) @IsNumber() @Type(() => Number) @Min(-90) @Max(90) latitude!: number; @ApiProperty({ example: 106.8, description: 'Kinh độ' }) @IsNumber() @Type(() => Number) @Min(-180) @Max(180) longitude!: number; @ApiPropertyOptional({ example: 'VSIP Bình Dương', description: 'Tên KCN cần phân tích' }) @IsOptional() @IsString() park_name?: string; @ApiPropertyOptional({ example: 'electronics', description: 'Ngành mục tiêu' }) @IsOptional() @IsString() target_industry?: string; }