添加数据源的实体类

master
冷调 2024-08-20 15:15:41 +08:00
parent 78e929fb19
commit 728fe161e3
4 changed files with 188 additions and 0 deletions

View File

@ -0,0 +1,45 @@
package com.muyu.source.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @ ToolIntelliJ IDEA
* @ AuthorCHX
* @ Date2024-08-20-14:58
* @ Version1.0
* @ Description
* @author Lenovo
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "asset_data_source")
public class AssetDataSource {
/**
*
*/
@Excel(name = "主键")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
*
*/
@Excel(name = "接入源名称")
private String name;
/**
*
*/
@Excel(name = "数据来源系统名称")
private String systemName;
/**
*
*/
@Excel(name = "数据库名称")
private String databaseName;
}

View File

@ -0,0 +1,51 @@
package com.muyu.source.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @ ToolIntelliJ IDEA
* @ AuthorCHX
* @ Date2024-08-20-14:18
* @ Version1.0
* @ Description
* @author Lenovo
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "children")
public class Children {
/**
*
*/
@Excel(name = "主键")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
*
*/
@Excel(name = "表名")
private String name;
/**
*
*/
@Excel(name = "表注释")
private String annotation;
/**
*
*/
@Excel(name = "数据条数")
private Integer dataTotal;
/**
*
*/
@Excel(name = "数据源id")
private Integer assetId;
}

View File

@ -30,6 +30,7 @@ public class DataSource extends BaseEntity {
/** /**
* *
*/ */
@Excel(name = "主键")
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Long id; private Long id;
/** /**

View File

@ -0,0 +1,91 @@
package com.muyu.source.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @ ToolIntelliJ IDEA
* @ AuthorCHX
* @ Date2024-08-20-15:02
* @ Version1.0
* @ Description
* @author Lenovo
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "table_data")
public class TableData {
/**
*
*/
@TableId(value = "id", type = IdType.AUTO)
@Excel(name = "主键")
private Long id;
/**
*
*/
@Excel(name = "字段名称")
private String name;
/**
*
*/
@Excel(name = "字段注释")
private String comment;
/**
*
*/
@Excel(name = "是否主键")
private String isPrimaryKey;
/**
*
*/
@Excel(name = "字段类型")
private String type;
/**
*
*/
@Excel(name = "映射类型")
private String mappingType;
/**
*
*/
@Excel(name = "长度")
private Integer length;
/**
*
*/
@Excel(name = "小数位")
private Integer decimalPlaces;
/**
*
*/
@Excel(name = "是否为空")
private String isNull;
/**
*
*/
@Excel(name = "默认值")
private String defaultValue;
/**
*
*/
@Excel(name = "是否字典")
private String isDict;
/**
*
*/
@Excel(name = "映射字典")
private String dictKey;
/**
* ID
*/
@Excel(name = "数据库结构ID")
private Integer childrenId;
}