From 3d22235521ec11effc4947375788d45fd0808a5b Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Sun, 9 Jul 2023 23:16:54 +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=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=95=8C=E9=9D=A2=E7=9A=84=E6=9D=83=E9=99=90=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../timer/modular/controller/SysTimersController.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kernel-d-timer/timer-business/src/main/java/cn/stylefeng/roses/kernel/timer/modular/controller/SysTimersController.java b/kernel-d-timer/timer-business/src/main/java/cn/stylefeng/roses/kernel/timer/modular/controller/SysTimersController.java index d0c27a686..3ea82807a 100644 --- a/kernel-d-timer/timer-business/src/main/java/cn/stylefeng/roses/kernel/timer/modular/controller/SysTimersController.java +++ b/kernel-d-timer/timer-business/src/main/java/cn/stylefeng/roses/kernel/timer/modular/controller/SysTimersController.java @@ -26,7 +26,6 @@ package cn.stylefeng.roses.kernel.timer.modular.controller; import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult; import cn.stylefeng.roses.kernel.rule.annotation.BusinessLog; -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; @@ -50,9 +49,14 @@ import java.util.List; * @since 2020/10/27 14:30 */ @RestController -@ApiResource(name = "定时任务管理", resBizType = ResBizTypeEnum.SYSTEM) +@ApiResource(name = "定时任务管理", requiredPermission = true, requirePermissionCode = SysTimersController.TIMER) public class SysTimersController { + /** + * 定时任务界面的权限控制标识 + */ + public static final String TIMER = "TIMER"; + @Resource private SysTimersService sysTimersService;