| | |
| | | return map; |
| | | } |
| | | |
| | | @Log(title = "数据统计", businessType = BusinessType.OTHER) |
| | | @GetMapping("/dataCount") |
| | | public Map<String, Object> dataCount(Integer day) { |
| | | if (null == day || day < 1) day = 15; |
| | | if (day > 365) day = 365; |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("pvCount", indexService.pvCount(day)); |
| | | map.put("uvCount", indexService.uvCount(day)); |
| | | map.put("newUserCount", indexService.newUserCount(day)); |
| | | |
| | | return map; |
| | | } |
| | | |
| | | // ④用户登录信息:以一定形式展示新登录或退出登录的用户账户及时间。 |
| | | @Log(title = "用户登录信息", businessType = BusinessType.OTHER) |
| | | @GetMapping("/lastLogin") |