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"),