Enterprise-level rapid development framework nbsaas-boot 1.0.14-2023 released

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

In this important update, we have brought a series of function optimizations and bug fixes, aiming to improve user experience and enhance the stability of the framework. The following are the details of this update:

  1. Code generator optimization: We added annotations such as BeanExt and FormExtField to facilitate the extension of Simple objects and Response objects. This will allow developers to be more flexible when generating code, and can be extended according to their needs.
  2. The problem of the number of levels when saving the tree structure class: We fixed the bug that the number of levels of the tree structure class was always kept at 1 in the previous version. Now, the number of levels in the tree structure class will be saved and displayed correctly according to the developer's needs.
  3. The naming confusion of single-project code generation modules: We have made a series of optimizations to solve this problem, making the naming of single-project code generation modules more standardized and clear, and reducing the probability of developers having naming conflicts in projects.
  4. nbsaas-admin module function optimization: We have optimized some functions of the nbsaas-admin module, including but not limited to interface interaction, performance improvement and user experience optimization.
  5. The nbsaas-boot-starter module adds WeChat payment function: In order to meet the needs of more developers, we have added the WeChat payment function in the basic function module nbsaas-boot-starter. Now, developers can easily use the WeChat payment function by simply introducing the corresponding dependencies into the project.
  6. nbsaas-admin-vue3 view page optimization: We have optimized the view page of nbsaas-admin-vue3 to provide a smoother and more intuitive user experience. Including the improvement of page loading speed, optimization of interface layout and improvement of interactive effects.

boot-nbsaas has the following features:

Automatic table creation: boot-nbsaas provides the automatic table creation function, which automatically generates the database table structure according to the user-defined data model, reduces manual operations, and improves development efficiency.

Development specifications: boot-nbsaas provides a set of development specifications, including code style, naming conventions, annotation specifications, etc., to make team development more standardized and efficient.

Code generator: boot-nbsaas provides a code generator, which automatically generates front-end and back-end codes according to the data model, improving development efficiency and code quality.

Multi-tenant support: boot-nbsaas supports multi-tenancy, providing independent data storage space and access rights for different customers, ensuring data security and isolation

Handle complex business through 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);

 

model building


@CatalogClass
@FormAnnotation(title = "Organizational Structure Management", model = "Organizational Structure", menu = "1,27,88")
@Data
@Entity
@Table(name = "sys_structure")
public class Structure extends CatalogEntity {

    @FormField(title = "father name")
    @Comment("father id")
    @FieldName
    @FieldConvert(classType = "Integer")
    @ManyToOne(fetch = FetchType.LAZY)
    private Structure parent;

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

}

 
Through model data extraction, and then generate back-end code + vue3 back-end management code through code generator

Basic function project https://gitee.com/cng1985/nbsaas-boot-starter
project scaffolding https://gitee.com/cng1985/nbsaas-admin
vue3 background management scaffolding https://gitee.com/cng1985/nbsaas-admin -vue3

Guess you like

Origin www.oschina.net/news/248880/nbsaas-boot-1-0-14-2023