From 80579ffebc0b1f4fe246314e2a441a19b54b664a Mon Sep 17 00:00:00 2001 From: weiz Date: Mon, 20 Nov 2023 09:50:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=AC=E5=8F=B8=E6=88=90?= =?UTF-8?q?=E5=91=98=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/company/CompanyController.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/app/adminapi/controller/company/CompanyController.php b/app/adminapi/controller/company/CompanyController.php index a8d05ccc..384982c2 100644 --- a/app/adminapi/controller/company/CompanyController.php +++ b/app/adminapi/controller/company/CompanyController.php @@ -187,4 +187,32 @@ } return json($result); } + + //获取公司成员列表 + public function companyUserLists(): Json + { + $params = $this->request->get(['company_id','page_no','page_size']); + if(empty($params['company_id'])){ + return $this->fail('缺少必要参数'); + } + $result = curl_post(env('project.worker_domain').'/middleapi/company/companyUserLists',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } + + //获取公司成员详情 + public function companyUserDetail(): Json + { + $params = $this->request->get(['user_id']); + if(empty($params['user_id'])){ + return $this->fail('缺少必要参数'); + } + $result = curl_post(env('project.worker_domain').'/middleapi/company/companyUserDetail',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } } \ No newline at end of file -- 2.40.1