From af78fdd2b1efc8bd5a21eeabed8fba2cfd184725 Mon Sep 17 00:00:00 2001 From: weiz Date: Sat, 11 Nov 2023 15:37:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A1=A3=E6=A1=88=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8E=A5=E5=8F=A3=E5=92=8C=E6=A1=A3=E6=A1=88=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../archives/ArchivesController.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/app/adminapi/controller/archives/ArchivesController.php b/app/adminapi/controller/archives/ArchivesController.php index aa1dd4a4..86078ddf 100644 --- a/app/adminapi/controller/archives/ArchivesController.php +++ b/app/adminapi/controller/archives/ArchivesController.php @@ -3,6 +3,7 @@ namespace app\adminapi\controller\archives; use app\adminapi\controller\BaseAdminController; + use think\response\Json; class ArchivesController extends BaseAdminController { @@ -17,5 +18,27 @@ ]; } + //档案列表 + public function lists(): Json + { + $params = $this->request->get(['page_no','page_size','name']); + $result = curl_post(env('project.worker_domain').'/middleapi/archives/lists',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } + public function detail(): Json + { + $params = $this->request->get(['id']); + if(empty($params['id'])){ + return $this->fail('参数错误'); + } + $result = curl_post(env('project.worker_domain').'/middleapi/archives/detail',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } } \ No newline at end of file