add color

This commit is contained in:
2026-06-21 10:16:16 +03:30
parent 7b594b36c0
commit d6e3f78e41
2 changed files with 6 additions and 1 deletions
@@ -71,7 +71,7 @@ export class RestaurantsController {
@UseGuards(AdminAuthGuard) @UseGuards(AdminAuthGuard)
@ApiBearerAuth() @ApiBearerAuth()
@Permissions(Permission.UPDATE_RESTAURANT) @Permissions(Permission.UPDATE_RESTAURANT)
@ApiOperation({ summary: 'Update restaurant background' }) @ApiOperation({ summary: 'Update restaurant background and menu color' })
@ApiBody({ type: UpdateRestaurantBgDto }) @ApiBody({ type: UpdateRestaurantBgDto })
@Patch('admin/restaurants/my-restaurant/background') @Patch('admin/restaurants/my-restaurant/background')
updateMyRestaurantBg(@RestId() restId: string, @Body() dto: UpdateRestaurantBgDto) { updateMyRestaurantBg(@RestId() restId: string, @Body() dto: UpdateRestaurantBgDto) {
@@ -21,4 +21,9 @@ export class UpdateRestaurantBgDto {
@IsOptional() @IsOptional()
@IsString() @IsString()
bgOverlay?: string; bgOverlay?: string;
@ApiPropertyOptional({ example: '#ff6600', description: 'رنگ منو' })
@IsOptional()
@IsString()
menuColor?: string;
} }