boot-nbsaas 1.0.11-2023 发布

来源: 投稿
作者: ada_young
2023-06-09 10:03:00
    <parent>
        <groupId>com.nbsaas.boot</groupId>
        <artifactId>boot-nbsaas</artifactId>
        <version>1.0.11-2023</version>
    </parent>
 

本次更新内容

  1. 优化了代码生成器,修改了SearchRequest.ftl生成SearchRequest对象模板,修改了Resource.ftl模板,树形结构类重新list方法。 优化了vue树形结构页面模板。
  2. BaseResource中listSimple的可见性
  3. 修改模型数据(FormBeanConvert)提取的方式,解决搜索字段重复的问题。
  4. 修复了单项目代码生成模块命名混乱的问题

boot-nbsaas 具有以下特点:

自动建表:boot-nbsaas 提供了自动建表功能,根据用户定义的数据模型自动生成数据库表结构,减少手动操作,提高开发效率。

开发规范:boot-nbsaas 提供一套开发规范,包括代码风格、命名规范、注释规范等,使团队开发更加规范化和高效化。

代码生成器:boot-nbsaas 提供代码生成器,根据数据模型自动生成前端和后端代码,提高开发效率和代码质量。

多租户支持:boot-nbsaas 支持多租户,为不同客户提供独立的数据存储空间和访问权限,保证数据安全性和隔离性
 

通过Command处理复杂的业务

    InputRequestObject context = new InputRequestObject();
    context.setConfig(config);
    context.setFormBean(formBean);

    new DomainCommand()
        .after(new ApiCommand())
        .after(new ConvertCommand())
        .after(new ControllerFrontCommand())
        .after(new RestCommand())
        .after(new ExtApiCommand())
        .after(new RepositoryCommand())
        .after(new FieldCommand())
        .after(new FinishCommand()).execute(context);
 

模型构建

@CatalogClass
@FormAnnotation(title = "组织架构管理", model = "组织架构", menu = "1,27,88")
@Data
@Entity
@Table(name = "sys_structure")
public class Structure extends CatalogEntity {

    @FormField(title = "父分类名称")
    @Comment("父分id")
    @FieldName
    @FieldConvert(classType = "Integer")
    @ManyToOne(fetch = FetchType.LAZY)
    private Structure parent;

    @OneToMany(fetch = FetchType.LAZY, mappedBy = "parent")
    private List<Structure> children;

}
 

通过模型数据提取,然后通过代码生成器生成后端代码+vue3后端管理代码

 

展开阅读全文
点击引领话题📣 发布并加入讨论🔥
0 评论
3 收藏
分享
返回顶部
顶部