From 66b1001d14ef8b942ef75f571ffc7a10ca44826a Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Fri, 24 Nov 2023 14:25:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B0=8F=E7=BB=84=E8=A7=92?= =?UTF-8?q?=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/adminapi/controller/user/UserController.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/adminapi/controller/user/UserController.php b/app/adminapi/controller/user/UserController.php index b0613078..d8bb1fa1 100644 --- a/app/adminapi/controller/user/UserController.php +++ b/app/adminapi/controller/user/UserController.php @@ -29,6 +29,17 @@ class UserController extends BaseAdminController return json($result); } + // 供销系统用户角色 + public function roleLists(): Json + { + $params=$this->request->get(['page_no','page_size']); + $result = curl_post(env('project.worker_domain').'/middleapi/user/roleLists',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } + // 获取用户详情 public function detail(): Json {