From cdd482f41c8a8916d7ae7b62cee3fd3a5e86d6b2 Mon Sep 17 00:00:00 2001
From: "Ray.Hao" <1490493387@qq.com>
Date: Sat, 17 Jan 2026 16:59:46 +0800
Subject: [PATCH] =?UTF-8?q?chore:=20=E7=BB=9F=E4=B8=80=E4=BB=A3=E7=A0=81?=
=?UTF-8?q?=E7=94=9F=E6=88=90=E6=A8=A1=E6=9D=BF=E6=9D=83=E9=99=90=E6=A0=87?=
=?UTF-8?q?=E8=AF=86=E4=B8=BA=20list/create/update/delete?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 2 +-
src/main/resources/templates/codegen/controller.java.vm | 8 ++++----
src/main/resources/templates/codegen/index.js.vue.vm | 4 ++--
src/main/resources/templates/codegen/index.vue.vm | 4 ++--
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/pom.xml b/pom.xml
index 5d6146e4..e24bbfe4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
com.youlai
youlai-boot
4.0.0
- 基于 Java 17 + SpringBoot 3 + Spring Security 构建的权限管理系统。
+ 基于 Java 17 + SpringBoot 4 + Spring Security 构建的权限管理系统。
org.springframework.boot
diff --git a/src/main/resources/templates/codegen/controller.java.vm b/src/main/resources/templates/codegen/controller.java.vm
index 5cd6ba94..e337c370 100644
--- a/src/main/resources/templates/codegen/controller.java.vm
+++ b/src/main/resources/templates/codegen/controller.java.vm
@@ -34,7 +34,7 @@ public class ${entityName}Controller {
@Operation(summary = "$!{businessName}分页列表")
@GetMapping
- @PreAuthorize("@ss.hasPerm('${moduleName}:${entityKebab}:query')")
+ @PreAuthorize("@ss.hasPerm('${moduleName}:${entityKebab}:list')")
public PageResult<${entityName}Vo> get${entityName}Page(${entityName}Query queryParams ) {
IPage<${entityName}Vo> result = ${entityLowerCamel}Service.get${entityName}Page(queryParams);
return PageResult.success(result);
@@ -42,7 +42,7 @@ public class ${entityName}Controller {
@Operation(summary = "新增${businessName}")
@PostMapping
- @PreAuthorize("@ss.hasPerm('${moduleName}:${entityKebab}:add')")
+ @PreAuthorize("@ss.hasPerm('${moduleName}:${entityKebab}:create')")
public Result save${entityName}(@RequestBody @Valid ${entityName}Form formData ) {
boolean result = ${entityLowerCamel}Service.save${entityName}(formData);
return Result.judge(result);
@@ -50,7 +50,7 @@ public class ${entityName}Controller {
@Operation(summary = "获取${businessName}表单数据")
@GetMapping("/{id}/form")
- @PreAuthorize("@ss.hasPerm('${moduleName}:${entityKebab}:edit')")
+ @PreAuthorize("@ss.hasPerm('${moduleName}:${entityKebab}:update')")
public Result<${entityName}Form> get${entityName}Form(
@Parameter(description = "$!{businessName}ID") @PathVariable Long id
) {
@@ -60,7 +60,7 @@ public class ${entityName}Controller {
@Operation(summary = "修改${businessName}")
@PutMapping(value = "/{id}")
- @PreAuthorize("@ss.hasPerm('${moduleName}:${entityKebab}:edit')")
+ @PreAuthorize("@ss.hasPerm('${moduleName}:${entityKebab}:update')")
public Result update${entityName}(
@Parameter(description = "$!{businessName}ID") @PathVariable Long id,
@RequestBody @Validated ${entityName}Form formData
diff --git a/src/main/resources/templates/codegen/index.js.vue.vm b/src/main/resources/templates/codegen/index.js.vue.vm
index 10d0139b..aa451293 100644
--- a/src/main/resources/templates/codegen/index.js.vue.vm
+++ b/src/main/resources/templates/codegen/index.js.vue.vm
@@ -98,7 +98,7 @@