wip: 代码生成临时提交
This commit is contained in:
@@ -11,27 +11,12 @@ import lombok.Data;
|
||||
@TableName(value ="gen_config")
|
||||
@Data
|
||||
public class GenConfig extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 表名
|
||||
*/
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 表注释
|
||||
*/
|
||||
private String tableComment;
|
||||
|
||||
/**
|
||||
* 实体名
|
||||
*/
|
||||
private String entityName;
|
||||
|
||||
/**
|
||||
* 包名
|
||||
*/
|
||||
@@ -42,6 +27,21 @@ public class GenConfig extends BaseEntity {
|
||||
*/
|
||||
private String moduleName;
|
||||
|
||||
/**
|
||||
* 实体名
|
||||
*/
|
||||
private String entityName;
|
||||
|
||||
/**
|
||||
* 类描述
|
||||
*/
|
||||
private String comment;
|
||||
|
||||
/**
|
||||
* 上级菜单ID
|
||||
*/
|
||||
private Long parentMenuId;
|
||||
|
||||
/**
|
||||
* 作者
|
||||
*/
|
||||
@@ -49,5 +49,5 @@ public class GenConfig extends BaseEntity {
|
||||
|
||||
|
||||
@TableLogic
|
||||
private Boolean isDeleted;
|
||||
private Integer isDeleted;
|
||||
}
|
||||
@@ -1,38 +1,44 @@
|
||||
package com.youlai.system.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.youlai.system.common.base.BaseEntity;
|
||||
import com.youlai.system.enums.FormTypeEnum;
|
||||
import com.youlai.system.enums.QueryTypeEnum;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* 字段配置实体
|
||||
* 字段生成配置实体
|
||||
*
|
||||
* @author Ray
|
||||
* @since 2.10.0
|
||||
*/
|
||||
@TableName(value = "gen_field_config")
|
||||
@Data
|
||||
@Getter
|
||||
@Setter
|
||||
public class GenFieldConfig extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 关联的配置ID
|
||||
*/
|
||||
private Long configId;
|
||||
|
||||
/**
|
||||
* 列名
|
||||
*/
|
||||
private String columnName;
|
||||
|
||||
/**
|
||||
* 列类型
|
||||
*/
|
||||
private String columnType;
|
||||
|
||||
/**
|
||||
* 字段长度
|
||||
*/
|
||||
private String columnLength;
|
||||
|
||||
/**
|
||||
* 字段名称
|
||||
*/
|
||||
@@ -46,7 +52,7 @@ public class GenFieldConfig extends BaseEntity {
|
||||
/**
|
||||
* 字段描述
|
||||
*/
|
||||
private String fieldComment;
|
||||
private String comment;
|
||||
|
||||
/**
|
||||
* 表单类型
|
||||
@@ -61,22 +67,22 @@ public class GenFieldConfig extends BaseEntity {
|
||||
/**
|
||||
* 是否在列表显示
|
||||
*/
|
||||
private Boolean isShowInList;
|
||||
private Integer isShowInList;
|
||||
|
||||
/**
|
||||
* 是否在表单显示
|
||||
*/
|
||||
private Boolean isShowInForm;
|
||||
private Integer isShowInForm;
|
||||
|
||||
/**
|
||||
* 是否在查询条件显示
|
||||
*/
|
||||
private Boolean isShowInQuery;
|
||||
private Integer isShowInQuery;
|
||||
|
||||
/**
|
||||
* 是否必填
|
||||
*/
|
||||
private Boolean isRequired;
|
||||
private Integer isRequired;
|
||||
|
||||
|
||||
}
|
||||
@@ -17,11 +17,6 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
public class SysDept extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 部门名称
|
||||
|
||||
@@ -14,11 +14,6 @@ import lombok.Data;
|
||||
*/
|
||||
@Data
|
||||
public class SysDict extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 类型名称
|
||||
|
||||
Reference in New Issue
Block a user