description

This commit is contained in:
2025-12-07 11:33:37 +03:30
parent 6b7ead553a
commit 14967bec6e
8 changed files with 49 additions and 2 deletions
@@ -6,6 +6,7 @@ import { ApplyCouponDto } from '../dto/apply-coupon.dto';
import { SetAddressDto } from '../dto/set-address.dto';
import { SetPaymentMethodDto } from '../dto/set-payment-method.dto';
import { SetDeliveryMethodDto } from '../dto/set-delivery-method.dto';
import { SetDescriptionDto } from '../dto/set-description.dto';
import { ApiTags, ApiOperation, ApiResponse, ApiBearerAuth, ApiBody, ApiParam } from '@nestjs/swagger';
import { AuthGuard } from '../../auth/guards/auth.guard';
import { UserId } from 'src/common/decorators/user-id.decorator';
@@ -120,4 +121,15 @@ export class CartController {
) {
return this.cartService.setDeliveryMethod(userId, restaurantId, setDeliveryMethodDto);
}
@Patch('description')
@ApiOperation({ summary: 'Set description for cart' })
@ApiBody({ type: SetDescriptionDto })
setDescription(
@UserId() userId: string,
@RestId() restaurantId: string,
@Body() setDescriptionDto: SetDescriptionDto,
) {
return this.cartService.setDescription(userId, restaurantId, setDescriptionDto);
}
}