feat: order finish

This commit is contained in:
2025-04-01 14:20:03 +08:00
parent cc28fba024
commit cab692b994
2 changed files with 13 additions and 5 deletions

View File

@@ -35,6 +35,9 @@ class OrderController extends AbstractController
return (new OrderListService())->handle(); return (new OrderListService())->handle();
} }
/**
* @return array
*/
#[RequestMapping(path: "info", methods: "GET")] #[RequestMapping(path: "info", methods: "GET")]
#[Scene(scene: "info")] #[Scene(scene: "info")]
public function info(): array public function info(): array
@@ -42,7 +45,10 @@ class OrderController extends AbstractController
return (new OrderInfoService())->handle(); return (new OrderInfoService())->handle();
} }
#[RequestMapping(path: "finish", methods: "GET")] /**
* @return array
*/
#[RequestMapping(path: "finish", methods: "POST")]
#[Scene(scene: "finish")] #[Scene(scene: "finish")]
public function finish(): array public function finish(): array
{ {
@@ -73,11 +79,15 @@ class OrderController extends AbstractController
return (new RefundService)->refundPartial(); 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")] #[Scene(scene: "refund_batch")]
public function batchRefund() public function batchRefund()
{ {
// todo
return (new RefundService)->refundBatch(); return (new RefundService)->refundBatch();
} }
} }

View File

@@ -87,8 +87,6 @@ class RefundService extends BaseService
/** /**
* @return array * @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/ */
public function refundBatch(): array public function refundBatch(): array
{ {