From 1d3313838bf1a32bd2a09d8f1460fcbc9e4ff1ca Mon Sep 17 00:00:00 2001 From: Ky10 <7703482+ky10_code@user.noreply.gitee.com> Date: Sat, 16 Nov 2024 20:18:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor(system):=20=E8=B0=83=E6=95=B4=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E9=85=8D=E7=BD=AE=E6=8E=A5=E5=8F=A3=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=92=8C=E8=B7=AF=E7=94=B1-=20=E4=B8=BA=20pa?= =?UTF-8?q?ge=20=E6=96=B9=E6=B3=95=E6=B7=BB=E5=8A=A0=20@PreAuthorize=20?= =?UTF-8?q?=E6=B3=A8=E8=A7=A3=EF=BC=8C=E6=8E=A7=E5=88=B6=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=9D=83=E9=99=90-=20=E5=B0=86=20refreshCache=20=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E7=9A=84=20HTTP=20=E6=96=B9=E6=B3=95=E4=BB=8E=20@Patc?= =?UTF-8?q?hMapping=20=E6=94=B9=E4=B8=BA=20@PutMapping=20-=20=E4=B8=BA=20u?= =?UTF-8?q?pdate=20=E5=92=8C=20delete=20=E6=96=B9=E6=B3=95=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=BC=BA=E5=A4=B1=E7=9A=84=20@PreAuthorize=20?= =?UTF-8?q?=E6=B3=A8=E8=A7=A3=20-=20=E8=B0=83=E6=95=B4=20delete=20?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E7=9A=84=E6=B3=A8=E8=A7=A3=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?=EF=BC=8C=E4=BD=BF=E5=85=B6=E4=B8=8E=E5=85=B6=E5=AE=83=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E4=BF=9D=E6=8C=81=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../youlai/boot/system/controller/ConfigController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/youlai/boot/system/controller/ConfigController.java b/src/main/java/com/youlai/boot/system/controller/ConfigController.java index 39964df2..3ba45f80 100644 --- a/src/main/java/com/youlai/boot/system/controller/ConfigController.java +++ b/src/main/java/com/youlai/boot/system/controller/ConfigController.java @@ -32,8 +32,8 @@ public class ConfigController { private final ConfigService configService; - @GetMapping("/page") @Operation(summary = "系统配置分页列表") + @GetMapping("/page") @PreAuthorize("@ss.hasPerm('sys:config:query')") public PageResult page(@ParameterObject ConfigPageQuery configPageQuery) { IPage result = configService.page(configPageQuery); @@ -57,21 +57,21 @@ public class ConfigController { } @Operation(summary = "刷新系统配置缓存") - @PatchMapping + @PutMapping(value = "/refresh") @PreAuthorize("@ss.hasPerm('sys:config:refresh')") public Result refreshCache() { return Result.judge(configService.refreshCache()); } - @PutMapping(value = "/{id}") @Operation(summary = "修改系统配置") + @PutMapping(value = "/{id}") @PreAuthorize("@ss.hasPerm('sys:config:update')") public Result update(@Valid @PathVariable Long id, @RequestBody ConfigForm configForm) { return Result.judge(configService.edit(id, configForm)); } - @DeleteMapping("/{id}") @Operation(summary = "删除系统配置") + @DeleteMapping("/{id}") @PreAuthorize("@ss.hasPerm('sys:config:delete')") public Result delete(@PathVariable Long id) { return Result.judge(configService.delete(id));