refactor: 模版管理支持多标签

This commit is contained in:
wangjiahao 2023-12-05 09:58:03 +08:00
parent 4297c21bef
commit 7b30ad483e
4 changed files with 263 additions and 0 deletions

View File

@ -0,0 +1,161 @@
package io.dataease.template.dao.auto.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
/**
* <p>
* 模板表
* </p>
*
* @author fit2cloud
* @since 2023-12-04
*/
@TableName("visualization_template_category")
public class VisualizationTemplateCategory implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
private String id;
/**
* 名称
*/
private String name;
/**
* 父级id
*/
private String pid;
/**
* 层级
*/
private Integer level;
/**
* 模版种类 dataV or dashboard 目录或者文件夹
*/
private String dvType;
/**
* 节点类型 folder or panel 目录或者文件夹
*/
private String nodeType;
/**
* 创建人
*/
private String createBy;
/**
* 创建时间
*/
private Long createTime;
/**
* 缩略图
*/
private String snapshot;
private String templateType;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public Integer getLevel() {
return level;
}
public void setLevel(Integer level) {
this.level = level;
}
public String getDvType() {
return dvType;
}
public void setDvType(String dvType) {
this.dvType = dvType;
}
public String getNodeType() {
return nodeType;
}
public void setNodeType(String nodeType) {
this.nodeType = nodeType;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public String getSnapshot() {
return snapshot;
}
public void setSnapshot(String snapshot) {
this.snapshot = snapshot;
}
public String getTemplateType() {
return templateType;
}
public void setTemplateType(String templateType) {
this.templateType = templateType;
}
@Override
public String toString() {
return "VisualizationTemplateCategory{" +
"id = " + id +
", name = " + name +
", pid = " + pid +
", level = " + level +
", dvType = " + dvType +
", nodeType = " + nodeType +
", createBy = " + createBy +
", createTime = " + createTime +
", snapshot = " + snapshot +
", templateType = " + templateType +
"}";
}
}

View File

@ -0,0 +1,66 @@
package io.dataease.template.dao.auto.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
/**
* <p>
* 模板表
* </p>
*
* @author fit2cloud
* @since 2023-12-04
*/
@TableName("visualization_template_category_map")
public class VisualizationTemplateCategoryMap implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
private String id;
/**
* 名称
*/
private String categoryId;
/**
* 父级id
*/
private String templateId;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
@Override
public String toString() {
return "VisualizationTemplateCategoryMap{" +
"id = " + id +
", categoryId = " + categoryId +
", templateId = " + templateId +
"}";
}
}

View File

@ -0,0 +1,18 @@
package io.dataease.template.dao.auto.mapper;
import io.dataease.template.dao.auto.entity.VisualizationTemplateCategoryMap;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>
* 模板表 Mapper 接口
* </p>
*
* @author fit2cloud
* @since 2023-12-04
*/
@Mapper
public interface VisualizationTemplateCategoryMapMapper extends BaseMapper<VisualizationTemplateCategoryMap> {
}

View File

@ -0,0 +1,18 @@
package io.dataease.template.dao.auto.mapper;
import io.dataease.template.dao.auto.entity.VisualizationTemplateCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>
* 模板表 Mapper 接口
* </p>
*
* @author fit2cloud
* @since 2023-12-04
*/
@Mapper
public interface VisualizationTemplateCategoryMapper extends BaseMapper<VisualizationTemplateCategory> {
}