增加30日世界地图访问

This commit is contained in:
MaxKey
2025-01-13 07:29:03 +08:00
parent 69ffbe40fe
commit 605d4205ac
11 changed files with 506 additions and 11 deletions

View File

@@ -36,15 +36,15 @@ import org.springframework.web.bind.annotation.RestController;
*/
@RestController
public class DashboardController {
private static Logger logger = LoggerFactory.getLogger(DashboardController.class);
@Autowired
ReportService reportService;
@GetMapping(value={"/dashboard"})
public Message<?> dashboard(@CurrentUser UserInfo currentUser) {
logger.debug("dashboard . ");
HashMap<String,Object> reportParameter = new HashMap<String,Object>();
HashMap<String,Object> reportParameter = new HashMap<>();
reportParameter.put("instId", currentUser.getInstId());
reportParameter.put("dayCount", reportService.analysisDay(reportParameter));
@@ -58,9 +58,12 @@ public class DashboardController {
reportParameter.put("reportProvince", reportService.analysisProvince(reportParameter));
reportParameter.put("reportCountry", reportService.analysisCountry(reportParameter));
reportParameter.put("reportBrowser", reportService.analysisBrowser(reportParameter));
reportParameter.put("reportApp", reportService.analysisApp(reportParameter));
return new Message<HashMap<?,?>>(reportParameter);
return new Message<>(reportParameter);
}
}