新增取消订单恢复优惠卷,新增获取订单支付数据接口

This commit is contained in:
2023-03-11 19:56:26 +08:00
parent 9fd87ac071
commit 53d9e2072d
10 changed files with 201 additions and 33 deletions
+16
View File
@@ -125,4 +125,20 @@ class PatientOrderController extends AbstractController
$data = $PatientOrderService->deletePatientProductOrder();
return $this->response->json($data);
}
/**
* 获取患者订单支付数据
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getPatientOrderPayInfo(): ResponseInterface
{
$request = $this->container->get(PatientOrderRequest::class);
$request->scene('getPatientOrderPayInfo')->validateResolved();
$PatientOrderService = new PatientOrderService();
$data = $PatientOrderService->getPatientOrderPayInfo();
return $this->response->json($data);
}
}