feat : order

This commit is contained in:
2025-03-06 15:14:10 +08:00
parent 2da7d8dd63
commit 5ad53e55be
4 changed files with 283 additions and 10 deletions

View File

@@ -9,6 +9,7 @@ use App\Middleware\Api\JwtAuthMiddleware;
use App\Service\Api\Order\CancelOrderService;
use App\Service\Api\Order\CheckCartService;
use App\Service\Api\Order\ConfirmationOrderService;
use App\Service\Api\Order\OrderInfoService;
use App\Service\Api\Order\OrderListService;
use App\Service\Api\Order\PlaceOrderService;
use App\Service\Api\Order\RefundOrderService;
@@ -87,10 +88,27 @@ class OrderController extends AbstractController
return (new RefundOrderService)->handle();
}
#[RequestMapping(path: 'order_list',methods: 'post')]
/**
* 订单列表
* @return array
*/
#[RequestMapping(path: 'order_list',methods: 'get')]
#[Scene(scene: 'order_list')]
public function orderList()
{
return (new OrderListService)->handle();
}
/**
* 订单详情
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[RequestMapping(path: 'order_info',methods: 'get')]
#[Scene(scene: 'order_info')]
public function orderInfo()
{
return (new OrderInfoService)->handle();
}
}