组态新增图元功能
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package com.njcn.cssystem.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/7/12 16:23
|
||||
*/
|
||||
@Data
|
||||
public class ElementParam {
|
||||
|
||||
@ApiModelProperty(value = "组件分类")
|
||||
@NotBlank(message="组件分类不能为空!")
|
||||
private String elementType;
|
||||
|
||||
@ApiModelProperty(value = "组件子类型")
|
||||
@NotBlank(message="组件子类型不能为空!")
|
||||
private String elementSonType;
|
||||
|
||||
@ApiModelProperty(value = "组件编码")
|
||||
private String elementCode;
|
||||
|
||||
@ApiModelProperty(value = "组件名称")
|
||||
private String elementName;
|
||||
|
||||
@ApiModelProperty(value = "组件标识")
|
||||
private String elementMark;
|
||||
|
||||
@ApiModelProperty(value = "图元文件")
|
||||
@NotNull(message="图元文件不能为空!")
|
||||
private MultipartFile multipartFile;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.njcn.cssystem.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 组态图元库
|
||||
* </p>
|
||||
*
|
||||
* @author xuyang
|
||||
* @since 2023-07-12
|
||||
*/
|
||||
@Data
|
||||
@TableName("cs_element")
|
||||
public class CsElement extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 图元文件路径
|
||||
*/
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* 组件分类
|
||||
*/
|
||||
private String elementType;
|
||||
|
||||
/**
|
||||
* 组件子类型
|
||||
*/
|
||||
private String elementSonType;
|
||||
|
||||
/**
|
||||
* 组件编码
|
||||
*/
|
||||
private String elementCode;
|
||||
|
||||
/**
|
||||
* 组件名称
|
||||
*/
|
||||
private String elementName;
|
||||
|
||||
/**
|
||||
* 组件标识
|
||||
*/
|
||||
private String elementMark;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user