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 @@