查询用户授权app

develop
guyuliang 2024-08-26 20:04:38 +08:00
parent bab20f84ad
commit 58755e20d9
2 changed files with 9 additions and 0 deletions

View File

@ -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<JSONObject> userAppList = getUserAppList(requestContext);
return new GeneralResult(true, userAppList, "查询成功");
} catch (Exception e) {

View File

@ -9,6 +9,8 @@ public enum YkInfo {
getTaskList("/activiti/rwMainTask/getTaskList"),
//用户授权应用接口
getUserAppList("/system/sysapp/getRoleOrUserHaveAppList"),
//获取所有app接口
getAllAppList("/system/sysapp/getAppList"),
//获取用户角色信息
getUserRoles("/system/user/queryUserRoles"),