添加数据源的实体类
parent
78e929fb19
commit
728fe161e3
|
@ -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;
|
||||
|
||||
/**
|
||||
* @ Tool:IntelliJ IDEA
|
||||
* @ Author:CHX
|
||||
* @ Date:2024-08-20-14:58
|
||||
* @ Version:1.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;
|
||||
}
|
|
@ -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;
|
||||
|
||||
/**
|
||||
* @ Tool:IntelliJ IDEA
|
||||
* @ Author:CHX
|
||||
* @ Date:2024-08-20-14:18
|
||||
* @ Version:1.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;
|
||||
|
||||
}
|
|
@ -30,6 +30,7 @@ public class DataSource extends BaseEntity {
|
|||
/**
|
||||
* 主键
|
||||
*/
|
||||
@Excel(name = "主键")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
* @ Tool:IntelliJ IDEA
|
||||
* @ Author:CHX
|
||||
* @ Date:2024-08-20-15:02
|
||||
* @ Version:1.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;
|
||||
|
||||
}
|
Loading…
Reference in New Issue