LinkController.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. namespace app\api\controller\link;
  3. use app\api\controller\ZskkDefaultController;
  4. use app\api\servies\dict\DictService;
  5. use app\api\servies\link\LinkService;
  6. use think\Exception;
  7. use think\facade\Request;
  8. class LinkController extends ZskkDefaultController
  9. {
  10. protected $needToken = false;
  11. protected $logName = "LinkController";
  12. public function getPacsInstitutionExam(LinkService $linkService)
  13. {
  14. $data = $linkService->getPacsInstitutionExam();
  15. return $this->success($data);
  16. }
  17. public function getPacsDateExam(LinkService $linkService)
  18. {
  19. $list = $linkService->getPacsDateExam();
  20. return $this->success($list);
  21. }
  22. public function getPacsAgeExam(LinkService $linkService)
  23. {
  24. $list = $linkService->getPacsAgeExam();
  25. return $this->success($list);
  26. }
  27. public function getPacsCount(LinkService $linkService)
  28. {
  29. $list = $linkService->getPacsCount();
  30. return $this->success($list);
  31. }
  32. public function getPacsResult(LinkService $linkService)
  33. {
  34. $list = $linkService->getPacsResult();
  35. return $this->success($list);
  36. }
  37. public function getPacsSex(LinkService $linkService)
  38. {
  39. $list = $linkService->getPacsSex();
  40. return $this->success($list);
  41. }
  42. public function getMiddleProjectList(LinkService $linkService)
  43. {
  44. $list = $linkService->getMiddleProjectList();
  45. return $this->success($list);
  46. }
  47. public function loginPacsBi(LinkService $linkService)
  48. {
  49. $param = Request::param();
  50. if($param['code'] == '8888')
  51. {
  52. return $this->success('success');
  53. }else{
  54. return $this->throwError('验证码错误','6001');
  55. }
  56. }
  57. public function getPacsMapExam(LinkService $linkService)
  58. {
  59. $list = $linkService->getPacsMapExam();
  60. return $this->success($list);
  61. }
  62. public function getViewDetail(LinkService $linkService)
  63. {
  64. $param = Request::param();
  65. $info = $this->getCache($param['token']);
  66. if(empty($info)){
  67. $this->throwError('token过期或已失效','-1');
  68. }
  69. $arr = $linkService->getViewDetail($info);
  70. return json_encode(['data'=>$arr,'code'=>0,'msg'=>'success'],JSON_UNESCAPED_UNICODE);
  71. }
  72. public function getPatientList(LinkService $linkService)
  73. {
  74. $param = Request::param();
  75. $list = $linkService->getPatientList($param);
  76. return $this->success($list);
  77. }
  78. public function getAnotherPatientList(LinkService $linkService)
  79. {
  80. $param = Request::param();
  81. $list = $linkService->getAnotherPatientList($param);
  82. return $this->success($list);
  83. }
  84. public function getPatientInfo(LinkService $linkService)
  85. {
  86. $param = Request::param();
  87. $list = $linkService->getPatientInfo($param);
  88. return $this->success($list);
  89. }
  90. public function getJm(LinkService $linkService)
  91. {
  92. $param = Request::param();
  93. $list = $linkService->getJm($param);
  94. return $this->success($list);
  95. }
  96. }