| | |
| | | import com.vci.constant.FrameWorkLangCodeConstant; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.framework.data.FuncOperationInfo; |
| | | import com.vci.corba.framework.data.OnlinUserInfo; |
| | | import com.vci.corba.framework.data.OperateInfo; |
| | | import com.vci.dto.RoleInfoDTO; |
| | | import com.vci.dto.RoleRightParamDTO; |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取当前用户在线人数 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getOnlinUsers") |
| | | public BaseResult<OnlinUserInfo> getOnlinUsers(){ |
| | | try { |
| | | BaseResult baseResult = BaseResult.success(); |
| | | List<OnlinUserInfo> onlineUserList = hmSysModConfigService.getOnlinUsers(); |
| | | baseResult.setData(onlineUserList); |
| | | return baseResult; |
| | | } catch (Exception e) { |
| | | String errorMsg = "获取当前在线用户时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(errorMsg); |
| | | throw new VciBaseException(errorMsg); |
| | | } |
| | | } |
| | | } |