查询用户授权app
parent
bab20f84ad
commit
58755e20d9
|
@ -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) {
|
||||
|
|
|
@ -9,6 +9,8 @@ public enum YkInfo {
|
|||
getTaskList("/activiti/rwMainTask/getTaskList"),
|
||||
//用户授权应用接口
|
||||
getUserAppList("/system/sysapp/getRoleOrUserHaveAppList"),
|
||||
//获取所有app接口
|
||||
getAllAppList("/system/sysapp/getAppList"),
|
||||
//获取用户角色信息
|
||||
getUserRoles("/system/user/queryUserRoles"),
|
||||
|
||||
|
|
Loading…
Reference in New Issue