12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace app\api\controller\super;
- use app\api\controller\ZskkDefaultController;
- use app\api\validate\application\ApplicationValidate;
- use app\api\servies\super\SuperService;
- use think\Exception;
- //use app\api\validate\test\LoginValidate;
- class SuperController extends ZskkDefaultController
- {
- protected $needToken = true;
- protected $logName = "SuperController";
- /**
- * 医院列表
- * @author liuguiyan LoginService $service
- */
- public function institution_list(SuperService $service)
- {
- $doctor =$service->getUser($this->getToken());
- $info = $service->getParentInstitution($doctor['institution_id']);
- return $this->success($info);
- }
- /**
- * 上级医生列表
- */
- public function doctor_list(SuperService $service)
- {
- $doctor =$service->getUser($this->getToken());
- $params = $this->getParams();
- ApplicationValidate::checkDlist($params);
- $info = $service->getDoctorInfo($params,$doctor);
- return $this->success($info);
- }
- }
|