| | |
| | | @Log(title = "新增用户统计", businessType = BusinessType.OTHER) |
| | | @GetMapping("/newUserCount") |
| | | public Map<String, Object> newUserCount(Integer day) { |
| | | if (null == day || day < 1) day = 7; |
| | | if (null == day || day < 1) day = 15; |
| | | if (day > 365) day = 365; |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | |
| | | // ⑤用户统计排行(活跃用户):以一定时间段内的登录时间或登录次数排名,展示前五名的用户信息 |
| | | @Log(title = "用户统计排行", businessType = BusinessType.OTHER) |
| | | @GetMapping("/userCountList") |
| | | public Map<String, Object> userCountList() { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | public List<Map<String, Object>> userCountList(Integer day, Integer amount) { |
| | | if (null == day || day < 1) day = 15; |
| | | if (day > 365) day = 365; |
| | | if (null == amount) amount = 5; |
| | | if (amount > 100) amount = 100; |
| | | |
| | | return map; |
| | | return indexService.userCountList(day, amount); |
| | | } |
| | | |
| | | // ⑥常用系统展示/各系统访问信息:基于用户访问次数排名,展示前五个系统的排名 |