feat : order
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user