迁移我的医生服务类,新增获取问诊医生列表

This commit is contained in:
2023-03-04 15:13:11 +08:00
parent d7983a1f2b
commit 80dbd4bf93
10 changed files with 303 additions and 183 deletions
+30
View File
@@ -3,6 +3,7 @@
namespace App\Controller;
use App\Request\UserPatientRequest;
use App\Services\MyDoctorService;
use App\Services\UserPatientService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
@@ -34,4 +35,33 @@ class UserPatientController extends AbstractController
$data = $UserPatientService->getPatientCenterInfo();
return $this->response->json($data);
}
/**
* 获取患者优惠卷列表
* @return ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getPatientCouponlist(): ResponseInterface
{
$request = $this->container->get(UserPatientRequest::class);
$request->scene('getPatientCouponlist')->validateResolved();
$UserPatientService = new UserPatientService();
$data = $UserPatientService->getPatientCouponlist();
return $this->response->json($data);
}
/**
* 删除服务过患者的医生
* 首页-个人中心
* @return ResponseInterface
*/
public function deletePatientDoctor(): ResponseInterface
{
$UserPatientService = new UserPatientService();
$data = $UserPatientService->deletePatientDoctor();
return $this->response->json($data);
}
}