删除 provider convert.

This commit is contained in:
lijiahang
2023-08-22 18:15:03 +08:00
parent d723114f3b
commit 2b7ebd4e26
8 changed files with 28 additions and 289 deletions

View File

@@ -27,9 +27,16 @@ public class GenTable {
private String comment;
/**
* 请求实体包名
* 业务实体包名
* <p>
* request dto 包
*/
private String requestPackage;
private String bizPackage;
/**
* 是否生成 provider api
*/
private boolean genApi;
// -------------------- 前端 --------------------
@@ -53,13 +60,28 @@ public class GenTable {
*/
private List<Class<? extends Enum<?>>> enums;
public GenTable(String tableName, String comment, String requestPackage) {
public GenTable(String tableName, String comment, String bizPackage) {
this(tableName, comment, bizPackage, false);
}
public GenTable(String tableName, String comment, String bizPackage, boolean genApi) {
this.tableName = tableName;
this.comment = comment;
this.requestPackage = requestPackage;
this.bizPackage = bizPackage;
this.genApi = genApi;
this.enums = new ArrayList<>();
}
/**
* 是否生成 api
*
* @return this
*/
public GenTable api() {
this.genApi = true;
return this;
}
/**
* 生成 vue 模板
*