feat: 代码生成 Beta 公测版本
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package com.youlai.system.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.youlai.system.common.base.BaseEntity;
|
||||
import com.youlai.system.enums.FormTypeEnum;
|
||||
import com.youlai.system.enums.QueryTypeEnum;
|
||||
@@ -53,7 +55,7 @@ public class GenFieldConfig extends BaseEntity {
|
||||
/**
|
||||
* 字段描述
|
||||
*/
|
||||
private String comment;
|
||||
private String fieldComment;
|
||||
|
||||
/**
|
||||
* 表单类型
|
||||
@@ -86,4 +88,12 @@ public class GenFieldConfig extends BaseEntity {
|
||||
private Integer isRequired;
|
||||
|
||||
|
||||
/**
|
||||
* TypeScript类型
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@JsonIgnore
|
||||
private String tsType;
|
||||
|
||||
|
||||
}
|
||||
@@ -61,7 +61,7 @@ public class GenConfigForm {
|
||||
private String fieldType;
|
||||
|
||||
@Schema(description = "字段描述")
|
||||
private String comment;
|
||||
private String fieldComment;
|
||||
|
||||
@Schema(description = "是否在列表显示")
|
||||
private Integer isShowInList;
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
package com.youlai.system.model.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Schema(description = "数据表字段VO")
|
||||
@Data
|
||||
public class TableColumnVO {
|
||||
|
||||
@Schema(description = "字段名称", example = "id")
|
||||
private String columnName;
|
||||
|
||||
@Schema(description = "字段类型", example = "bigint")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "字段描述", example = "主键")
|
||||
private String columnComment;
|
||||
|
||||
@Schema(description = "字段长度", example = "20")
|
||||
private Integer characterMaximumLength;
|
||||
|
||||
@Schema(description = "是否主键(1-是 0-否)", example = "1")
|
||||
private Integer isPrimaryKey;
|
||||
|
||||
@Schema(description = "是否可为空(1-是 0-否)", example = "1")
|
||||
private String isNullable;
|
||||
|
||||
@Schema(description = "字符集", example = "utf8mb4")
|
||||
private String characterSetName;
|
||||
|
||||
@Schema(description = "字符集排序规则", example = "utf8mb4_general_ci")
|
||||
private String collationName;
|
||||
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@Schema(description = "数据表VO")
|
||||
@Schema(description = "表视图对象")
|
||||
@Data
|
||||
public class TablePageVO {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user