【8.0】【权限】更新服务器信息界面的权限标识

pull/57/head
fengshuonan 2023-07-09 23:27:23 +08:00
parent 30c84e532d
commit bf34d4576d
1 changed files with 6 additions and 2 deletions

View File

@ -26,7 +26,6 @@ package cn.stylefeng.roses.kernel.monitor.system.controller;
import cn.stylefeng.roses.kernel.monitor.system.SystemHardwareCalculator; import cn.stylefeng.roses.kernel.monitor.system.SystemHardwareCalculator;
import cn.stylefeng.roses.kernel.monitor.system.holder.SystemHardwareInfoHolder; import cn.stylefeng.roses.kernel.monitor.system.holder.SystemHardwareInfoHolder;
import cn.stylefeng.roses.kernel.rule.enums.ResBizTypeEnum;
import cn.stylefeng.roses.kernel.rule.pojo.response.ResponseData; import cn.stylefeng.roses.kernel.rule.pojo.response.ResponseData;
import cn.stylefeng.roses.kernel.rule.pojo.response.SuccessResponseData; import cn.stylefeng.roses.kernel.rule.pojo.response.SuccessResponseData;
import cn.stylefeng.roses.kernel.scanner.api.annotation.ApiResource; import cn.stylefeng.roses.kernel.scanner.api.annotation.ApiResource;
@ -42,9 +41,14 @@ import javax.annotation.Resource;
* @since 2021/4/14 18:44 * @since 2021/4/14 18:44
*/ */
@RestController @RestController
@ApiResource(name = "监控的控制器", resBizType = ResBizTypeEnum.SYSTEM) @ApiResource(name = "监控的控制器", requiredPermission = true, requirePermissionCode = MonitorStatusController.SERVER_MONITOR)
public class MonitorStatusController { public class MonitorStatusController {
/**
*
*/
public static final String SERVER_MONITOR = "SERVER_MONITOR";
@Resource @Resource
private SystemHardwareInfoHolder systemHardwareInfoHolder; private SystemHardwareInfoHolder systemHardwareInfoHolder;