mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-31 22:19:35 +08:00
feat 还原代码生成器的UI 和接口格式
This commit is contained in:
@@ -24,7 +24,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/gen")
|
||||
@RequestMapping("/adminapi/gen")
|
||||
public class GenController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.mdd.generator.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
@@ -9,8 +10,11 @@ public class DbColumnVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@JsonProperty("columnName")
|
||||
private String columnName; // 字段名称
|
||||
@JsonProperty("columnComment")
|
||||
private String columnComment; // 字段描述
|
||||
@JsonProperty("columnType")
|
||||
private String columnType; // 字段类型
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.mdd.generator.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
@@ -12,10 +13,15 @@ public class DbTableVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@JsonProperty("tableName")
|
||||
private String tableName; // 表的名称
|
||||
@JsonProperty("tableComment")
|
||||
private String tableComment; // 表的描述
|
||||
@JsonProperty("authorName")
|
||||
private String authorName; // 作者名称
|
||||
@JsonProperty("createTime")
|
||||
private String createTime; // 创建时间
|
||||
@JsonProperty("updateTime")
|
||||
private String updateTime; // 更新时间
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.mdd.generator.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
@@ -13,21 +14,37 @@ public class GenColumnVo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer id; // 字段主键
|
||||
@JsonProperty("columnName")
|
||||
private String columnName; // 字段名称
|
||||
@JsonProperty("columnComment")
|
||||
private String columnComment; // 字段描述
|
||||
@JsonProperty("columnLength")
|
||||
private Integer columnLength; // 字段长度
|
||||
@JsonProperty("columnType")
|
||||
private String columnType; // 字段类型
|
||||
@JsonProperty("javaType")
|
||||
private String javaType; // JAVA类型
|
||||
@JsonProperty("javaField")
|
||||
private String javaField; // JAVA字段
|
||||
@JsonProperty("isRequired")
|
||||
private Integer isRequired; // 是否必填
|
||||
@JsonProperty("isInsert")
|
||||
private Integer isInsert; // 是否插入字段
|
||||
@JsonProperty("isEdit")
|
||||
private Integer isEdit; // 是否编辑字段
|
||||
@JsonProperty("isList")
|
||||
private Integer isList; // 是否列表字段
|
||||
@JsonProperty("isQuery")
|
||||
private Integer isQuery; // 是否查询字段
|
||||
@JsonProperty("queryType")
|
||||
private String queryType; // 查询方式: [等于、不等于、大于、小于、范围]
|
||||
@JsonProperty("htmlType")
|
||||
private String htmlType; // 显示类型: [文本框、文本域、下拉框、复选框、单选框、日期控件]
|
||||
@JsonProperty("dictType")
|
||||
private String dictType; // 字典类型
|
||||
@JsonProperty("createTime")
|
||||
private String createTime; // 创建时间
|
||||
@JsonProperty("updateTime")
|
||||
private String updateTime; // 更新时间
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.mdd.generator.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
@@ -13,10 +14,15 @@ public class GenTableVo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer id; // 生成主键
|
||||
@JsonProperty("genType")
|
||||
private Integer genType; // 生成类型: [0=zip压缩包, 1=自定义路径]
|
||||
@JsonProperty("tableName")
|
||||
private String tableName; // 表的名称
|
||||
@JsonProperty("tableComment")
|
||||
private String tableComment; // 表的描述
|
||||
@JsonProperty("createTime")
|
||||
private String createTime; // 创建时间
|
||||
@JsonProperty("updateTime")
|
||||
private String updateTime; // 删除时间
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user