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 1/3] =?UTF-8?q?refactor(system):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E9=85=8D=E7=BD=AE=E6=8E=A5=E5=8F=A3=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=8E=A7=E5=88=B6=E5=92=8C=E8=B7=AF=E7=94=B1-=20?= =?UTF-8?q?=E4=B8=BA=20page=20=E6=96=B9=E6=B3=95=E6=B7=BB=E5=8A=A0=20@PreA?= =?UTF-8?q?uthorize=20=E6=B3=A8=E8=A7=A3=EF=BC=8C=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=83=E9=99=90-=20=E5=B0=86=20refreshCach?= =?UTF-8?q?e=20=E6=96=B9=E6=B3=95=E7=9A=84=20HTTP=20=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E4=BB=8E=20@PatchMapping=20=E6=94=B9=E4=B8=BA=20@PutMapping=20?= =?UTF-8?q?-=20=E4=B8=BA=20update=20=E5=92=8C=20delete=20=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E6=B7=BB=E5=8A=A0=E7=BC=BA=E5=A4=B1=E7=9A=84=20@PreAu?= =?UTF-8?q?thorize=20=E6=B3=A8=E8=A7=A3=20-=20=E8=B0=83=E6=95=B4=20delete?= =?UTF-8?q?=20=E6=96=B9=E6=B3=95=E7=9A=84=E6=B3=A8=E8=A7=A3=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=EF=BC=8C=E4=BD=BF=E5=85=B6=E4=B8=8E=E5=85=B6=E5=AE=83?= =?UTF-8?q?=E6=96=B9=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)); From be5bc74f6ab74ba65efcbd41f5bca787b599bb54 Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Sun, 17 Nov 2024 17:34:04 +0800 Subject: [PATCH 2/3] =?UTF-8?q?chore:=20=E7=B3=BB=E7=BB=9F=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E8=A1=A8=E7=9A=84=E9=80=BB=E8=BE=91=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E9=BB=98=E8=AE=A40?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/mysql5/youlai_boot.sql | 2 +- sql/mysql8/youlai_boot.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/mysql5/youlai_boot.sql b/sql/mysql5/youlai_boot.sql index c08a2476..3c97831c 100644 --- a/sql/mysql5/youlai_boot.sql +++ b/sql/mysql5/youlai_boot.sql @@ -34,7 +34,7 @@ CREATE TABLE `sys_config` ( `create_by` bigint NOT NULL COMMENT '创建人ID', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', - `is_deleted` tinyint(1) NOT NULL COMMENT '逻辑删除标识(0-未删除 1-已删除)', + `is_deleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT '逻辑删除标识(0-未删除 1-已删除)', PRIMARY KEY (`id`) ) ENGINE=InnoDB COMMENT='系统配置'; diff --git a/sql/mysql8/youlai_boot.sql b/sql/mysql8/youlai_boot.sql index ec042a83..7e304c56 100644 --- a/sql/mysql8/youlai_boot.sql +++ b/sql/mysql8/youlai_boot.sql @@ -473,7 +473,7 @@ `create_by` bigint COMMENT '创建人ID', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `update_by` bigint DEFAULT NULL COMMENT '更新人ID', - `is_deleted` tinyint(4) NOT NULL COMMENT '逻辑删除标识(0-未删除 1-已删除)', + `is_deleted` tinyint(4) DEFAULT '0' NOT NULL COMMENT '逻辑删除标识(0-未删除 1-已删除)', PRIMARY KEY (`id`) ) ENGINE=InnoDB COMMENT='系统配置表'; From 272fc6b98ae2d3d2f88215b84f3c5240bfbe13d7 Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Sun, 17 Nov 2024 17:37:47 +0800 Subject: [PATCH 3/3] =?UTF-8?q?refactor:=20=E7=94=A8=E6=88=B7=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=97=A5=E6=9C=9F=E6=A0=BC=E5=BC=8F=E7=B2=BE=E7=A1=AE?= =?UTF-8?q?=E5=88=B0=E5=88=86=E9=92=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/youlai/boot/system/model/vo/UserPageVO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/youlai/boot/system/model/vo/UserPageVO.java b/src/main/java/com/youlai/boot/system/model/vo/UserPageVO.java index abd2ddbe..cf1ce1b0 100644 --- a/src/main/java/com/youlai/boot/system/model/vo/UserPageVO.java +++ b/src/main/java/com/youlai/boot/system/model/vo/UserPageVO.java @@ -47,7 +47,7 @@ public class UserPageVO { private String roleNames; @Schema(description="创建时间") - @JsonFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy/MM/dd HH:mm") private Date createTime; }