企业级快速开发框架 nbsaas-boot 1.1.3-2023 发布了

<parent>
     <groupId>com.nbsaas.boot</groupId>
     <artifactId>nbsaas-boot</artifactId>
     <version>1.1.3-2023</version>
</parent>

本次更新内容

1. 升级 spring-boot 版本,升级shiro版本1.13.0

2. 增加SearchData注解,方便在搜索的适合通过aop进行数据拦截

3. 增加控制操作区域是否显示属性

4. 新增ExtResourceCommand ,处理生成代码的时候生成扩展模块文件夹。

5. 搜索模块支持or条件搜索。

6. 修改通过注解提取模型数据。

nbsaas-boot 具有以下特点:

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

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

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

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

通过 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 后端管理代码

基础功能项目 https://gitee.com/cng1985/nbsaas-boot-starter
项目脚手架 https://gitee.com/cng1985/nbsaas-admin
vue3 后台管理脚手架 https://gitee.com/cng1985/nbsaas-admin-vue3

猜你喜欢

转载自www.oschina.net/news/267394/nbsaas-boot-1-1-3-2023