最新一版6.0
parent
4ce93b9f97
commit
c393b16490
|
@ -0,0 +1,15 @@
|
||||||
|
package net.srt.controller;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import net.srt.service.MetadataService;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("metadata")
|
||||||
|
@Tag(name = "数据治理-元数据")
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class MetadataController {
|
||||||
|
private final MetadataService metadataService;
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
package net.srt.dao;
|
||||||
|
|
||||||
|
import net.srt.entity.MetadataEntity;
|
||||||
|
import net.srt.framework.mybatis.dao.BaseDao;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface MetadataDao extends BaseDao<MetadataEntity> {
|
||||||
|
}
|
|
@ -0,0 +1,68 @@
|
||||||
|
package net.srt.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import net.srt.framework.mybatis.entity.BaseEntity;
|
||||||
|
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
@Data
|
||||||
|
@TableName("data_governance_metadata")
|
||||||
|
public class MetadataEntity extends BaseEntity {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 父级id(默认0为顶级)
|
||||||
|
*/
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 树状节点的路径
|
||||||
|
*/
|
||||||
|
private String path;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 节点名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 节点英文名称
|
||||||
|
*/
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
private Integer ifLeaf;
|
||||||
|
/**
|
||||||
|
* 对应的元模型id
|
||||||
|
*/
|
||||||
|
private Long metamodelId;
|
||||||
|
|
||||||
|
private String icon;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 详情
|
||||||
|
*/
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据库类型(1-数据库 2-中台库)
|
||||||
|
*/
|
||||||
|
private Integer dbType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 如果是外部系统接入的库表,需要此字段
|
||||||
|
*/
|
||||||
|
private Long datasourceId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 采集任务id
|
||||||
|
*/
|
||||||
|
private Long collectTaskId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目id(租户id)
|
||||||
|
*/
|
||||||
|
private Long projectId;
|
||||||
|
|
||||||
|
|
||||||
|
private Integer orderNo;
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
package net.srt.service;
|
||||||
|
|
||||||
|
import net.srt.entity.MetadataEntity;
|
||||||
|
import net.srt.framework.mybatis.service.BaseService;
|
||||||
|
|
||||||
|
public interface MetadataService extends BaseService<MetadataEntity> {
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package net.srt.service.impl;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.servers.Server;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import net.srt.dao.MetadataDao;
|
||||||
|
import net.srt.entity.MetadataEntity;
|
||||||
|
import net.srt.framework.mybatis.service.impl.BaseServiceImpl;
|
||||||
|
import net.srt.service.MetadataService;
|
||||||
|
@Server
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class MetadataServiceImpl extends BaseServiceImpl<MetadataDao, MetadataEntity> implements MetadataService {
|
||||||
|
}
|
Loading…
Reference in New Issue