diff --git a/kernel-d-log/log-business-login-log/src/main/java/cn/stylefeng/roses/kernel/system/modular/loginlog/controller/SysLoginLogController.java b/kernel-d-log/log-business-login-log/src/main/java/cn/stylefeng/roses/kernel/system/modular/loginlog/controller/SysLoginLogController.java index de14d35ff..8ad5cff46 100644 --- a/kernel-d-log/log-business-login-log/src/main/java/cn/stylefeng/roses/kernel/system/modular/loginlog/controller/SysLoginLogController.java +++ b/kernel-d-log/log-business-login-log/src/main/java/cn/stylefeng/roses/kernel/system/modular/loginlog/controller/SysLoginLogController.java @@ -28,7 +28,6 @@ import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult; import cn.stylefeng.roses.kernel.log.api.pojo.loginlog.SysLoginLogDto; import cn.stylefeng.roses.kernel.log.api.pojo.loginlog.SysLoginLogRequest; 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; @@ -47,9 +46,14 @@ import javax.annotation.Resource; * @since 2021/1/13 17:51 */ @RestController -@ApiResource(name = "登录日志", resBizType = ResBizTypeEnum.SYSTEM) +@ApiResource(name = "登录日志", requiredPermission = true, requirePermissionCode = SysLoginLogController.LOG_LOGIN) public class SysLoginLogController { + /** + * 登录日志界面的权限标识 + */ + public static final String LOG_LOGIN = "LOG_LOGIN"; + @Resource private SysLoginLogService sysLoginLogService; diff --git a/kernel-d-log/log-business-manage/src/main/java/cn/stylefeng/roses/kernel/log/manage/controller/LogManagerController.java b/kernel-d-log/log-business-manage/src/main/java/cn/stylefeng/roses/kernel/log/manage/controller/LogManagerController.java index ec202e15b..0bcd8464f 100644 --- a/kernel-d-log/log-business-manage/src/main/java/cn/stylefeng/roses/kernel/log/manage/controller/LogManagerController.java +++ b/kernel-d-log/log-business-manage/src/main/java/cn/stylefeng/roses/kernel/log/manage/controller/LogManagerController.java @@ -30,7 +30,6 @@ import cn.stylefeng.roses.kernel.log.api.pojo.manage.LogManagerRequest; import cn.stylefeng.roses.kernel.log.api.pojo.record.LogRecordDTO; import cn.stylefeng.roses.kernel.log.db.service.SysLogService; 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/11/3 12:44 */ @RestController -@ApiResource(name = "日志管理控制器", resBizType = ResBizTypeEnum.SYSTEM) +@ApiResource(name = "日志管理控制器", requiredPermission = true, requirePermissionCode = LogManagerController.OPERATE_LOG) public class LogManagerController { + /** + * 操作日志界面的权限标识 + */ + public static final String OPERATE_LOG = "OPERATE_LOG"; + /** * 日志管理api */