From 58755e20d927867f9ef801136b28ae188c2392c4 Mon Sep 17 00:00:00 2001 From: guyuliang Date: Mon, 26 Aug 2024 20:04:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=94=A8=E6=88=B7=E6=8E=88?= =?UTF-8?q?=E6=9D=83app?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/bocloud/sms/service/IndexServiceImpl.java | 7 +++++++ .../src/main/java/com/bocloud/sms/enums/YkInfo.java | 2 ++ 2 files changed, 9 insertions(+) diff --git a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java index 923d186..035f22a 100644 --- a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java +++ b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java @@ -106,6 +106,13 @@ public class IndexServiceImpl implements IndexService { public GeneralResult userAppList(RequestContext requestContext) { try { + //获取所有的appList + //查询当前用户授权应用 + JSONObject param = new JSONObject(); + param.put("type", "user"); + String result = ykUtil.call(YkInfo.getAllAppList, param, JSONArray.class); + + List userAppList = getUserAppList(requestContext); return new GeneralResult(true, userAppList, "查询成功"); } catch (Exception e) { diff --git a/bocloud.sms.storage/src/main/java/com/bocloud/sms/enums/YkInfo.java b/bocloud.sms.storage/src/main/java/com/bocloud/sms/enums/YkInfo.java index a0872f4..53dd9ef 100644 --- a/bocloud.sms.storage/src/main/java/com/bocloud/sms/enums/YkInfo.java +++ b/bocloud.sms.storage/src/main/java/com/bocloud/sms/enums/YkInfo.java @@ -9,6 +9,8 @@ public enum YkInfo { getTaskList("/activiti/rwMainTask/getTaskList"), //用户授权应用接口 getUserAppList("/system/sysapp/getRoleOrUserHaveAppList"), + //获取所有app接口 + getAllAppList("/system/sysapp/getAppList"), //获取用户角色信息 getUserRoles("/system/user/queryUserRoles"),