|
|
@ -85,52 +85,57 @@ public class IndexController {
|
|
|
|
@GetMapping("showData")
|
|
|
|
@GetMapping("showData")
|
|
|
|
@ApiOperation("展示数据")
|
|
|
|
@ApiOperation("展示数据")
|
|
|
|
public AjaxResult showWbSearch() throws ExecutionException, InterruptedException {
|
|
|
|
public AjaxResult showWbSearch() throws ExecutionException, InterruptedException {
|
|
|
|
CompletableFuture<List<ApiTopsearchWeibo>> weiboListFuture = CompletableFuture.supplyAsync(() ->
|
|
|
|
Map<Object, Object> map = null;
|
|
|
|
apiTopsearchWeiboService.showWbSearch(), executor);
|
|
|
|
try {
|
|
|
|
|
|
|
|
CompletableFuture<List<ApiTopsearchWeibo>> weiboListFuture = CompletableFuture.supplyAsync(() ->
|
|
|
|
CompletableFuture<List<CopyWritingNetworkDTO>> networkDTOListFuture = CompletableFuture.supplyAsync(indexController::getCopyWritingNetworkList, executor);
|
|
|
|
apiTopsearchWeiboService.showWbSearch(), executor);
|
|
|
|
|
|
|
|
|
|
|
|
CompletableFuture<List<CopyWriting>> yunListFuture = CompletableFuture.supplyAsync(() ->
|
|
|
|
CompletableFuture<List<CopyWritingNetworkDTO>> networkDTOListFuture = CompletableFuture.supplyAsync(indexController::getCopyWritingNetworkList, executor);
|
|
|
|
copyWritingService.NeteaseHotWord(), executor);
|
|
|
|
|
|
|
|
|
|
|
|
CompletableFuture<List<CopyWriting>> yunListFuture = CompletableFuture.supplyAsync(() ->
|
|
|
|
CompletableFuture<Map<Object, Object>> logCountFuture = CompletableFuture.supplyAsync(indexController::getLogCount, executor);
|
|
|
|
copyWritingService.NeteaseHotWord(), executor);
|
|
|
|
|
|
|
|
|
|
|
|
CompletableFuture<Integer> loginCountFuture = CompletableFuture.supplyAsync(indexController::getLoginCount, executor);
|
|
|
|
CompletableFuture<Map<Object, Object>> logCountFuture = CompletableFuture.supplyAsync(indexController::getLogCount, executor);
|
|
|
|
|
|
|
|
|
|
|
|
CompletableFuture<List<SysOperLog>> sysOperLogFuture = CompletableFuture.supplyAsync(indexController::getSysOperLog, executor);
|
|
|
|
CompletableFuture<Integer> loginCountFuture = CompletableFuture.supplyAsync(indexController::getLoginCount, executor);
|
|
|
|
|
|
|
|
|
|
|
|
CompletableFuture<List<EnglishWordDTO>> englishFuture = CompletableFuture.supplyAsync(indexController::getEnglish, executor);
|
|
|
|
CompletableFuture<List<SysOperLog>> sysOperLogFuture = CompletableFuture.supplyAsync(indexController::getSysOperLog, executor);
|
|
|
|
|
|
|
|
|
|
|
|
CompletableFuture<Map<String, List<String>>> beautyPictureFuture = CompletableFuture.supplyAsync(indexController::getBeautyPictureList, executor);
|
|
|
|
CompletableFuture<List<EnglishWordDTO>> englishFuture = CompletableFuture.supplyAsync(indexController::getEnglish, executor);
|
|
|
|
|
|
|
|
|
|
|
|
CompletableFuture<Map<Object, Object>> newsFuture = CompletableFuture.supplyAsync(indexController::getNews, executor);
|
|
|
|
CompletableFuture<Map<String, List<String>>> beautyPictureFuture = CompletableFuture.supplyAsync(indexController::getBeautyPictureList, executor);
|
|
|
|
|
|
|
|
|
|
|
|
CompletableFuture<IPInfoVo> ipInfoFuture = CompletableFuture.supplyAsync(indexController::getIpInfo, executor);
|
|
|
|
CompletableFuture<Map<Object, Object>> newsFuture = CompletableFuture.supplyAsync(indexController::getNews, executor);
|
|
|
|
|
|
|
|
|
|
|
|
CompletableFuture.allOf(
|
|
|
|
CompletableFuture<IPInfoVo> ipInfoFuture = CompletableFuture.supplyAsync(indexController::getIpInfo, executor);
|
|
|
|
weiboListFuture,
|
|
|
|
|
|
|
|
networkDTOListFuture,
|
|
|
|
CompletableFuture.allOf(
|
|
|
|
yunListFuture,
|
|
|
|
weiboListFuture,
|
|
|
|
logCountFuture,
|
|
|
|
networkDTOListFuture,
|
|
|
|
sysOperLogFuture,
|
|
|
|
yunListFuture,
|
|
|
|
englishFuture,
|
|
|
|
logCountFuture,
|
|
|
|
newsFuture,
|
|
|
|
sysOperLogFuture,
|
|
|
|
beautyPictureFuture,
|
|
|
|
englishFuture,
|
|
|
|
ipInfoFuture
|
|
|
|
newsFuture,
|
|
|
|
).get();
|
|
|
|
beautyPictureFuture,
|
|
|
|
|
|
|
|
ipInfoFuture
|
|
|
|
Map<Object, Object> map = MapUtil.builder()
|
|
|
|
).get();
|
|
|
|
.put("weiboList", weiboListFuture.get())
|
|
|
|
|
|
|
|
.put("networkDTOList", networkDTOListFuture.get())
|
|
|
|
map = MapUtil.builder()
|
|
|
|
.put("yunList", yunListFuture.get())
|
|
|
|
.put("weiboList", weiboListFuture.get())
|
|
|
|
.put("logCount", logCountFuture.get())
|
|
|
|
.put("networkDTOList", networkDTOListFuture.get())
|
|
|
|
.put("loginCount", loginCountFuture.get())
|
|
|
|
.put("yunList", yunListFuture.get())
|
|
|
|
.put("sysOperLog", sysOperLogFuture.get())
|
|
|
|
.put("logCount", logCountFuture.get())
|
|
|
|
.put("englishWord", englishFuture.get())
|
|
|
|
.put("loginCount", loginCountFuture.get())
|
|
|
|
.put("news", newsFuture.get())
|
|
|
|
.put("sysOperLog", sysOperLogFuture.get())
|
|
|
|
.put("beautyPicture", beautyPictureFuture.get())
|
|
|
|
.put("englishWord", englishFuture.get())
|
|
|
|
.put("ipInfo", ipInfoFuture.get())
|
|
|
|
.put("news", newsFuture.get())
|
|
|
|
.build();
|
|
|
|
.put("beautyPicture", beautyPictureFuture.get())
|
|
|
|
|
|
|
|
.put("ipInfo", ipInfoFuture.get())
|
|
|
|
|
|
|
|
.build();
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
|
|
|
}
|
|
|
|
return AjaxResult.success(map);
|
|
|
|
return AjaxResult.success(map);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|