add color
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user