This commit is contained in:
2025-11-22 17:02:53 +03:30
parent 852c5f722b
commit f3607ad407
5 changed files with 25 additions and 54 deletions
@@ -36,12 +36,14 @@ export class CreateRestaurantDto {
longitude?: number;
@ApiPropertyOptional({
example: 'POLYGON((51.389 35.6892, 51.390 35.6892, 51.390 35.6902, 51.389 35.6902, 51.389 35.6892))',
description: 'محدوده سرویس‌دهی به صورت PostGIS Polygon (WKT format)',
example: { type: 'Polygon', coordinates: [[[51.389, 35.6892], [51.390, 35.6892], [51.390, 35.6902], [51.389, 35.6902], [51.389, 35.6892]]] },
description: 'محدوده سرویس‌دهی به صورت GeoJSON Polygon',
})
@IsOptional()
@IsString()
serviceArea?: string;
serviceArea?: {
type: 'Polygon';
coordinates: number[][][];
};
@ApiPropertyOptional({ example: 2020, description: 'سال تأسیس' })
@IsOptional()