迁移我的医生服务类,新增获取问诊医生列表
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user