|
|
@ -210,7 +210,7 @@ public class WaterRequestUtil { |
|
|
|
body = response.body(); |
|
|
|
} |
|
|
|
long endTime = System.currentTimeMillis(); |
|
|
|
log.info("--------请求统一门户用户验证,耗时{}毫秒,返回结果为:{}", endTime - startTime, body); |
|
|
|
log.info("--------请求统一门户用户验证,耗时{}毫秒", endTime - startTime); |
|
|
|
WaterResultV2<WaterUser> waterResult = JSON.parseObject(body, new TypeReference<WaterResultV2<WaterUser>>() { |
|
|
|
}); |
|
|
|
isSuccess(waterResult); |
|
|
@ -270,7 +270,7 @@ public class WaterRequestUtil { |
|
|
|
body = response.body(); |
|
|
|
} |
|
|
|
long endTime = System.currentTimeMillis(); |
|
|
|
log.info("--------请求获取门户用户资源信息,耗时{}毫秒,返回结果为:{}", endTime - startTime, body); |
|
|
|
log.info("--------请求获取门户用户资源信息,耗时{}毫秒", endTime - startTime); |
|
|
|
WaterResultV2<List<SingleMenu>> waterResult = JSON.parseObject(body, new TypeReference<WaterResultV2<List<SingleMenu>>>() { |
|
|
|
}); |
|
|
|
isSuccess(waterResult); |
|
|
@ -291,7 +291,7 @@ public class WaterRequestUtil { |
|
|
|
.execute()) { |
|
|
|
body = response.body(); |
|
|
|
} |
|
|
|
log.info("--------请求获取门户角色信息,返回结果为:{}", body); |
|
|
|
log.info("--------请求获取门户角色信息"); |
|
|
|
WaterResult waterResult = JSONObject.parseObject(body, WaterResult.class); |
|
|
|
isSuccess(waterResult); |
|
|
|
//{\"total\":1,\"size\":100,\"records\":[{\"area\":\"440000\",\"systemList\":[{\"area\":\"440000\",\"code\":\"sgc-jg\",\"name\":\"水工程应用-水利工程建设管理模块\",\"id\":\"1732648267643097090\"}],\"code\":\"YW00013\",\"level\":\"1d\",\"dataConfig\":\"none\",\"type\":\"BUSINESS\",\"posts\":[],\"users\":[{\"id\":\"20231225000006\"},{\"id\":\"20240119000002\"}],\"name\":\"水利工程应用-水利工程建设管理模块角色\",\"id\":\"20231213000001\",\"category\":\"BUSINESS\",\"businesses\":[{\"parent\":\"1762458920822599682\",\"businessCode\":\"YWSLGCJSGL0008\",\"parentName\":\"水利工程建设管理\",\"businessName\":\"水利工程建设管理\",\"description\":\"\",\"id\":\"1705128209926942721\",\"delFlag\":0}],\"status\":\"1\"}],\"page\":1}
|
|
|
@ -311,7 +311,7 @@ public class WaterRequestUtil { |
|
|
|
.execute()) { |
|
|
|
body = response.body(); |
|
|
|
} |
|
|
|
log.info("--------请求获取门户用户信息,返回结果为:{}", body); |
|
|
|
log.info("--------请求获取门户用户信息" ); |
|
|
|
WaterResult waterResult = JSONObject.parseObject(body, WaterResult.class); |
|
|
|
isSuccess(waterResult); |
|
|
|
return waterResult; |
|
|
|