From a1e9eb6b6b12fadee95371318843d89e5ec20980 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 14 Nov 2023 16:18:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A5=E5=BF=97api=E6=9C=AA=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E5=AF=B9=E5=BA=94=E8=8F=9C=E5=8D=95=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/dataease/controller/sys/SysLogController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/backend/src/main/java/io/dataease/controller/sys/SysLogController.java b/core/backend/src/main/java/io/dataease/controller/sys/SysLogController.java index bdcc559e35..484223b0bb 100644 --- a/core/backend/src/main/java/io/dataease/controller/sys/SysLogController.java +++ b/core/backend/src/main/java/io/dataease/controller/sys/SysLogController.java @@ -15,6 +15,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; +import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; @@ -31,6 +32,7 @@ public class SysLogController { @I18n @ApiOperation("查询日志") + @RequiresPermissions("log:read") @PostMapping("/logGrid/{goPage}/{pageSize}") @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", name = "goPage", value = "页码", required = true, dataType = "Integer"), @@ -52,6 +54,7 @@ public class SysLogController { @ApiOperation("导出操作日志") @PostMapping("/export") + @RequiresPermissions("log:export") @ApiImplicitParam(name = "request", value = "查询条件", required = true) @SqlInjectValidator(value = {"time"}) public void export(@RequestBody LogGridRequest request) throws Exception {