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

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

This update

1. The background module adds shiro permission annotations. When adding menus in the front desk, you need to configure the permission label, otherwise a 406 error will be reported. 2. The vue
code template adds the function of adding data loading animation
3. Modified the vue code generation template and the jpa code generation template
4. Optimized some functions of the nbsaas-admin module
5. Added the basic function module nbsaas-boot-starter, WeChat payment module. Just import the basic functions into pom.
6. Optimized the nbsaas-admin-vue3 view page

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 = "组织架构管理", 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;

}

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

Supongo que te gusta

Origin www.oschina.net/news/253312/nbsaas-boot-1-0-15-2023
Recomendado
Clasificación