wip: 代码生成临时提交

This commit is contained in:
ray
2024-07-24 08:13:47 +08:00
parent cc8a24645b
commit 8a6adef303
13 changed files with 158 additions and 87 deletions

View File

@@ -9,52 +9,64 @@ import java.util.List;
@Schema(description = "代码生成配置表单")
@Data
public class GenCodeConfigForm {
public class GenConfigForm {
@Schema(description = "表名")
private String tableName;
@Schema(description = "实体名")
private String entityName;
@Schema(description = "包名")
private String packageName;
@Schema(description = "类描述")
private String comment;
@Schema(description = "模块名")
private String moduleName;
@Schema(description = "包名")
private String packageName;
@Schema(description = "实体名")
private String entityName;
@Schema(description = "作者")
private String author;
@Schema(description = "字段配置")
@Schema(description = "字段配置列表")
private List<FieldConfig> fieldConfigs;
@Schema(description = "字段配置")
@Data
public static class FieldConfig {
@Schema(description = "字段名称")
private String name;
@Schema(description = "列名")
private String columnName;
@Schema(description = "列类型")
private String columnType;
@Schema(description = "字段名")
private String fieldName;
@Schema(description = "字段类型")
private String type;
private String fieldType;
@Schema(description = "字段描述")
private String description;
private String comment;
@Schema(description = "是否在列表显示")
private Boolean showInList;
private Integer isShowInList;
@Schema(description = "是否在表单显示")
private Boolean showInForm;
private Integer isShowInForm;
@Schema(description = "是否在查询条件显示")
private Boolean showInQuery;
private Integer isShowInQuery;
@Schema(description = "是否必填")
private Integer isRequired;
@Schema(description = "表单类型")
private FormTypeEnum formType;
@Schema(description = "查询方式")
@Schema(description = "查询类型")
private QueryTypeEnum queryType;
}