From bf34d4576d7f35b02a079a3089cbae5d017fbace Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Sun, 9 Jul 2023 23:27:23 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=908.0=E3=80=91=E3=80=90=E6=9D=83?= =?UTF-8?q?=E9=99=90=E3=80=91=E6=9B=B4=E6=96=B0=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E7=95=8C=E9=9D=A2=E7=9A=84=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/controller/MonitorStatusController.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kernel-o-monitor/monitor-business-system-info/src/main/java/cn/stylefeng/roses/kernel/monitor/system/controller/MonitorStatusController.java b/kernel-o-monitor/monitor-business-system-info/src/main/java/cn/stylefeng/roses/kernel/monitor/system/controller/MonitorStatusController.java index 104fcc331..a12145153 100644 --- a/kernel-o-monitor/monitor-business-system-info/src/main/java/cn/stylefeng/roses/kernel/monitor/system/controller/MonitorStatusController.java +++ b/kernel-o-monitor/monitor-business-system-info/src/main/java/cn/stylefeng/roses/kernel/monitor/system/controller/MonitorStatusController.java @@ -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.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.SuccessResponseData; import cn.stylefeng.roses.kernel.scanner.api.annotation.ApiResource; @@ -42,9 +41,14 @@ import javax.annotation.Resource; * @since 2021/4/14 18:44 */ @RestController -@ApiResource(name = "监控的控制器", resBizType = ResBizTypeEnum.SYSTEM) +@ApiResource(name = "监控的控制器", requiredPermission = true, requirePermissionCode = MonitorStatusController.SERVER_MONITOR) public class MonitorStatusController { + /** + * 服务器信息界面的权限标识 + */ + public static final String SERVER_MONITOR = "SERVER_MONITOR"; + @Resource private SystemHardwareInfoHolder systemHardwareInfoHolder;