<%_ if (position === 'import') { _%>
<%_ } _%>
<%_ if (position === 'method') { _%>

    /**
     * 获取访客统计
     * @return ResponseEntity<List<Map<String,Object>>>
     */
    @GetMapping("/visit-info")
    public ResponseEntity<List<Map<String,Object>>> visitInfo() {
        <%_ if (databaseTypeMongodb) { _%>
        return ResponseEntity.ok(new ArrayList<>());// todo
        <%_ } else { _%>
        return ResponseEntity.ok(sysLogQueryService.countVisit());
        <%_ } _%>
    }

    /**
     * 获取访问量统计
     */
    @GetMapping("/stats-user")
    public ResponseEntity<Map<String, Object>> loginfo() {
        <%_ if (databaseTypeMongodb) { _%>
        return ResponseEntity.ok(new HashMap<>());// todo
        <%_ } else { _%>
        return ResponseEntity.ok(sysLogQueryService.logInfo());
        <%_ } _%>
    }
<%_ } _%>
