SuperController.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace app\api\controller\super;
  3. use app\api\controller\ZskkDefaultController;
  4. use app\api\validate\application\ApplicationValidate;
  5. use app\api\servies\super\SuperService;
  6. use think\Exception;
  7. //use app\api\validate\test\LoginValidate;
  8. class SuperController extends ZskkDefaultController
  9. {
  10. protected $needToken = true;
  11. protected $logName = "SuperController";
  12. /**
  13. * 医院列表
  14. * @author liuguiyan LoginService $service
  15. */
  16. public function institution_list(SuperService $service)
  17. {
  18. $doctor =$service->getUser($this->getToken());
  19. $info = $service->getParentInstitution($doctor['institution_id']);
  20. return $this->success($info);
  21. }
  22. /**
  23. * 上级医生列表
  24. */
  25. public function doctor_list(SuperService $service)
  26. {
  27. $doctor =$service->getUser($this->getToken());
  28. $params = $this->getParams();
  29. ApplicationValidate::checkDlist($params);
  30. $info = $service->getDoctorInfo($params,$doctor);
  31. return $this->success($info);
  32. }
  33. }