chore: continew-starter 2.7.1 => 2.7.2

1.重构代码生成(PostgreSQL 数据库兼容更完整)
2.适配 Tree 树结构生成
3.适配字典扩展配置
This commit is contained in:
2024-11-13 22:36:08 +08:00
parent fb947c98fd
commit 1ddac12cd2
17 changed files with 117 additions and 209 deletions

View File

@@ -27,10 +27,9 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import top.continew.admin.generator.model.entity.FieldConfigDO;
import top.continew.admin.generator.model.entity.GenConfigDO;
import top.continew.admin.generator.model.query.TableQuery;
import top.continew.admin.generator.model.query.GenConfigQuery;
import top.continew.admin.generator.model.req.GenConfigReq;
import top.continew.admin.generator.model.resp.GeneratePreviewResp;
import top.continew.admin.generator.model.resp.TableResp;
import top.continew.admin.generator.service.GeneratorService;
import top.continew.admin.system.service.DictService;
import top.continew.starter.extension.crud.model.query.PageQuery;
@@ -56,11 +55,11 @@ public class GeneratorController {
private final GeneratorService baseService;
private final DictService dictService;
@Operation(summary = "分页查询数据表", description = "分页查询数据")
@Operation(summary = "分页查询生成配置", description = "分页查询生成配置列")
@SaCheckPermission("tool:generator:list")
@GetMapping("/table")
public PageResp<TableResp> pageTable(TableQuery query, @Validated PageQuery pageQuery) throws SQLException {
return baseService.pageTable(query, pageQuery);
@GetMapping("/config")
public PageResp<GenConfigDO> pageGenConfig(GenConfigQuery query, @Validated PageQuery pageQuery) {
return baseService.pageGenConfig(query, pageQuery);
}
@Operation(summary = "查询生成配置信息", description = "查询生成配置信息")

View File

@@ -5,5 +5,5 @@
\____|\___/ |_| |_| \__||_||_| \_| \___| \_/\_/ /_/ \_\\__,_||_| |_| |_||_||_| |_|
:: ${project.name} :: v${project.version}
:: ContiNew Starter :: v2.7.1
:: ContiNew Starter :: v2.7.2
:: Spring Boot :: v${spring-boot.version}

View File

@@ -63,11 +63,6 @@ generator:
- timestamp
## 模板配置
templateConfigs:
MenuSql:
template-path: backend/menu.sql.ftl
package-name: sql
extension: .sql
backend: true
DO:
# 模板路径
templatePath: backend/Entity.ftl
@@ -133,4 +128,9 @@ generator:
templatePath: frontend/DetailDrawer.ftl
packageName: src/views
extension: .vue
backend: false
backend: false
Menu:
template-path: backend/Menu.ftl
packageName: sql
extension: .sql
backend: true

View File

@@ -66,6 +66,13 @@ continew-starter.web:
# 是否将原生异常错误信息填充到状态信息中
origin-exception-using-detail-message: false
--- ### 全局树结构配置(简单树,对应前端 UI
continew-starter.crud:
tree:
id-key: key
name-key: title
weight-key: sort
--- ### 接口文档配置
springdoc:
# 设置对象型参数的展示形式(设为 true 表示将对象型参数平展开,即对象内的属性直接作为参数展示而不是嵌套在对象内,默认 false