mirror of https://gitee.com/stylefeng/roses
【8.0】【权限】更新日志管理界面的权限标识
parent
649d6dceba
commit
30c84e532d
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue