update
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user