feat : check stock

This commit is contained in:
2025-03-28 17:46:25 +08:00
parent b398364727
commit e9ead2bd6b
3 changed files with 59 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ use App\Controller\AbstractController;
use App\Middleware\Api\JwtAuthMiddleware;
use App\Service\Api\Order\CancelOrderService;
use App\Service\Api\Order\CheckCartService;
use App\Service\Api\Order\CheckStockService;
use App\Service\Api\Order\ConfirmationOrderService;
use App\Service\Api\Order\OrderInfoService;
use App\Service\Api\Order\OrderListService;
@@ -38,6 +39,18 @@ class OrderController extends AbstractController
return (new CheckCartService)->handle();
}
/**
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: 'check_stock',methods: 'post')]
#[Scene(scene: 'check_stock')]
public function checkGoodStock()
{
return (new CheckStockService)->handle();
}
/**
* @return array
* @throws ContainerExceptionInterface