【8.0】【权限】更新日志管理界面的权限标识

pull/57/head
fengshuonan 2023-07-09 23:26:06 +08:00
parent 649d6dceba
commit 30c84e532d
2 changed files with 12 additions and 4 deletions

View File

@ -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;

View File

@ -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
*/