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 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();
}
}