From cab692b9946478d41475cafeccb94d3abf093b35 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Tue, 1 Apr 2025 14:20:03 +0800 Subject: [PATCH] feat: order finish --- app/Controller/Admin/OrderController.php | 16 +++++++++++++--- app/Service/Admin/Order/RefundService.php | 2 -- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/app/Controller/Admin/OrderController.php b/app/Controller/Admin/OrderController.php index ec79b16..c258a84 100644 --- a/app/Controller/Admin/OrderController.php +++ b/app/Controller/Admin/OrderController.php @@ -35,6 +35,9 @@ class OrderController extends AbstractController return (new OrderListService())->handle(); } + /** + * @return array + */ #[RequestMapping(path: "info", methods: "GET")] #[Scene(scene: "info")] public function info(): array @@ -42,7 +45,10 @@ class OrderController extends AbstractController return (new OrderInfoService())->handle(); } - #[RequestMapping(path: "finish", methods: "GET")] + /** + * @return array + */ + #[RequestMapping(path: "finish", methods: "POST")] #[Scene(scene: "finish")] public function finish(): array { @@ -73,11 +79,15 @@ class OrderController extends AbstractController return (new RefundService)->refundPartial(); } - #[RequestMapping(path: "refund_batch", methods: "GET")] + /** + * @return array + * @throws ContainerExceptionInterface + * @throws NotFoundExceptionInterface + */ + #[RequestMapping(path: "refund_batch", methods: "POST")] #[Scene(scene: "refund_batch")] public function batchRefund() { - // todo return (new RefundService)->refundBatch(); } } diff --git a/app/Service/Admin/Order/RefundService.php b/app/Service/Admin/Order/RefundService.php index 29d6938..ef7e0f8 100644 --- a/app/Service/Admin/Order/RefundService.php +++ b/app/Service/Admin/Order/RefundService.php @@ -87,8 +87,6 @@ class RefundService extends BaseService /** * @return array - * @throws ContainerExceptionInterface - * @throws NotFoundExceptionInterface */ public function refundBatch(): array {