This commit is contained in:
2023-04-07 17:00:01 +08:00
parent ff03d3b1e6
commit 5cb91fd4b6
4 changed files with 24 additions and 1 deletions
@@ -89,4 +89,20 @@ class DoctorAccountController extends AbstractController
$data = $DoctorAccountService->getDoctorWithdrawalRecordList();
return $this->response->json($data);
}
/**
* 发起提现
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function addDoctorWithdrawal(): ResponseInterface
{
$request = $this->container->get(DoctorAccountRequest::class);
$request->scene('addDoctorWithdrawal')->validateResolved();
$DoctorAccountService = new DoctorAccountService();
$data = $DoctorAccountService->addDoctorWithdrawal();
return $this->response->json($data);
}
}