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 {