|  |  | 
 |  |  | import cc.mrbird.febs.monitor.entity.ActiveUser; | 
 |  |  | import cc.mrbird.febs.monitor.service.ISessionService; | 
 |  |  | import lombok.RequiredArgsConstructor; | 
 |  |  | import org.apache.commons.collections4.CollectionUtils; | 
 |  |  | import org.apache.shiro.authz.annotation.RequiresPermissions; | 
 |  |  | import org.springframework.web.bind.annotation.GetMapping; | 
 |  |  | import org.springframework.web.bind.annotation.PathVariable; | 
 |  |  | 
 |  |  |         List<ActiveUser> list = sessionService.list(username); | 
 |  |  |         Map<String, Object> data = new HashMap<>(2); | 
 |  |  |         data.put("rows", list); | 
 |  |  |         data.put("total", CollectionUtils.size(list)); | 
 |  |  |         data.put("total", list.size()); | 
 |  |  |         return new FebsResponse().success().data(data); | 
 |  |  |     } | 
 |  |  |  |