diff --git a/src/modules/restaurants/controllers/restaurants.controller.ts b/src/modules/restaurants/controllers/restaurants.controller.ts index 9ced16f..4bf4857 100644 --- a/src/modules/restaurants/controllers/restaurants.controller.ts +++ b/src/modules/restaurants/controllers/restaurants.controller.ts @@ -71,7 +71,7 @@ export class RestaurantsController { @UseGuards(AdminAuthGuard) @ApiBearerAuth() @Permissions(Permission.UPDATE_RESTAURANT) - @ApiOperation({ summary: 'Update restaurant background' }) + @ApiOperation({ summary: 'Update restaurant background and menu color' }) @ApiBody({ type: UpdateRestaurantBgDto }) @Patch('admin/restaurants/my-restaurant/background') updateMyRestaurantBg(@RestId() restId: string, @Body() dto: UpdateRestaurantBgDto) { diff --git a/src/modules/restaurants/dto/update-restaurant-bg.dto.ts b/src/modules/restaurants/dto/update-restaurant-bg.dto.ts index c095aca..abefc3d 100644 --- a/src/modules/restaurants/dto/update-restaurant-bg.dto.ts +++ b/src/modules/restaurants/dto/update-restaurant-bg.dto.ts @@ -21,4 +21,9 @@ export class UpdateRestaurantBgDto { @IsOptional() @IsString() bgOverlay?: string; + + @ApiPropertyOptional({ example: '#ff6600', description: 'رنگ منو' }) + @IsOptional() + @IsString() + menuColor?: string; }