| | |
| | | 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.OnlineUserInfo; |
| | | import com.vci.corba.framework.data.OperateInfo; |
| | | import com.vci.dto.RoleInfoDTO; |
| | | import com.vci.dto.RoleRightParamDTO; |
| | | import com.vci.dto.RoleRightParamDTOS; |
| | | import com.vci.pagemodel.OperateVO; |
| | | import com.vci.web.service.ISmFunctionQueryService; |
| | | import com.vci.web.service.SmHMSysModConfigServiceI; |
| | | import com.vci.pagemodel.AppConfigDetailInfoVO; |
| | |
| | | |
| | | /** |
| | | * 添加操作类型 |
| | | * @param operateInfo |
| | | * @param operateVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/addOperationType") |
| | | public BaseResult addOperationType(@RequestBody OperateInfo operateInfo) { |
| | | public BaseResult addOperationType(@RequestBody OperateVO operateVO) { |
| | | try { |
| | | return BaseResult.success(hmSysModConfigService.addOperationType(operateInfo),"添加操作类型成功"); |
| | | return BaseResult.success(hmSysModConfigService.addOperationType(operateVO),"添加操作类型成功"); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | String errorMsg = "添加操作类型时出现错误,原因:"+ VciBaseUtil.getExceptionMessage(e); |
| | |
| | | |
| | | /** |
| | | * 修改操作类型 |
| | | * @param operateInfo |
| | | * @param operateVO |
| | | * @return |
| | | */ |
| | | @PutMapping("/updateOperationType") |
| | | public BaseResult updateOperationType(@RequestBody OperateInfo operateInfo) { |
| | | public BaseResult updateOperationType(@RequestBody OperateVO operateVO) { |
| | | try { |
| | | return BaseResult.success(hmSysModConfigService.updateOperationType(operateInfo),"修改操作类型成功"); |
| | | return BaseResult.success(hmSysModConfigService.updateOperationType(operateVO),"修改操作类型成功"); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | String errorMsg = "修改操作类型时出现错误,原因:"+ VciBaseUtil.getExceptionMessage(e); |
| | |
| | | * 获取当前用户在线人数 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getOnlinUsers") |
| | | public BaseResult<OnlinUserInfo> getOnlinUsers(){ |
| | | @GetMapping("/getOnlineUsers") |
| | | public BaseResult<OnlineUserInfo> getOnlineUsers(){ |
| | | try { |
| | | BaseResult baseResult = BaseResult.success(); |
| | | List<OnlinUserInfo> onlineUserList = hmSysModConfigService.getOnlinUsers(); |
| | | List<OnlineUserInfo> onlineUserList = hmSysModConfigService.getOnlineUsers(); |
| | | baseResult.setData(onlineUserList); |
| | | return baseResult; |
| | | } catch (Exception e) { |