组态图元入库、查询功能
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
package com.njcn.csharmonic.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 组态图元库
|
||||
* </p>
|
||||
*
|
||||
* @author xuyang
|
||||
* @since 2023-06-14
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("cs_element")
|
||||
public class CsElement extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 图元文件路径
|
||||
*/
|
||||
private String path;
|
||||
|
||||
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
package com.njcn.csharmonic.pojo.vo;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/6/2 15:30
|
||||
*/
|
||||
@Data
|
||||
public class ConditionVO implements Serializable {
|
||||
|
||||
@SerializedName("pic")
|
||||
private String pic;
|
||||
|
||||
@SerializedName("value")
|
||||
private String value;
|
||||
}
|
||||
@@ -1,10 +1,8 @@
|
||||
package com.njcn.csharmonic.pojo.vo;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
@@ -16,52 +14,8 @@ import java.util.List;
|
||||
@Data
|
||||
public class ElementsVO implements Serializable {
|
||||
|
||||
@SerializedName("type")
|
||||
private String type;
|
||||
private String id;
|
||||
|
||||
@SerializedName("lineId")
|
||||
private List<String> lineId;
|
||||
|
||||
@SerializedName("lineName")
|
||||
private String lineName;
|
||||
|
||||
@SerializedName("targetId")
|
||||
private List<String> targetId;
|
||||
|
||||
@SerializedName("targetPid")
|
||||
private String targetPid;
|
||||
|
||||
@SerializedName("targetName")
|
||||
private String targetName;
|
||||
|
||||
@SerializedName("dataType")
|
||||
private String dataType;
|
||||
|
||||
@SerializedName("phasic")
|
||||
private String phasic;
|
||||
|
||||
@SerializedName("defaultPic")
|
||||
private String defaultPic;
|
||||
|
||||
@SerializedName("width")
|
||||
private String width;
|
||||
|
||||
@SerializedName("height")
|
||||
private Integer height;
|
||||
|
||||
@SerializedName("top")
|
||||
private Integer top;
|
||||
|
||||
@SerializedName("left")
|
||||
private Integer left;
|
||||
|
||||
@SerializedName("condition")
|
||||
private List<ConditionVO> condition;
|
||||
|
||||
@SerializedName("color")
|
||||
private String color;
|
||||
|
||||
@SerializedName("fontSize")
|
||||
private Integer fontSize;
|
||||
private String json;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
package com.njcn.csharmonic.pojo.vo;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/6/2 15:39
|
||||
*/
|
||||
@Data
|
||||
public class ZuTaiVo implements Serializable {
|
||||
|
||||
@SerializedName("background")
|
||||
private String background;
|
||||
|
||||
@SerializedName("elements")
|
||||
private List<ElementsVO> elements;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user