sservice area

This commit is contained in:
2025-11-22 16:43:32 +03:30
parent f30b1729d3
commit 852c5f722b
5 changed files with 60 additions and 10 deletions
@@ -35,10 +35,13 @@ export class CreateRestaurantDto {
@IsNumber()
longitude?: number;
@ApiPropertyOptional({ example: 5000, description: 'حوزه سرویس‌دهی به متر' })
@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)',
})
@IsOptional()
@IsNumber()
serviceArea?: number;
@IsString()
serviceArea?: string;
@ApiPropertyOptional({ example: 2020, description: 'سال تأسیس' })
@IsOptional()