字典解析调整
This commit is contained in:
@@ -36,6 +36,8 @@ public interface DataModel {
|
||||
|
||||
String CTRL = "Ctrl";
|
||||
|
||||
String WAVE = "Wave";
|
||||
|
||||
/**
|
||||
* 数据模型临时表
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.njcn.access.pojo.dto.data;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/8/29 15:39
|
||||
*/
|
||||
@Data
|
||||
public class WaveDto implements Serializable {
|
||||
|
||||
@SerializedName("OpAttr")
|
||||
@NotNull(message = "读写操作属性,不为空")
|
||||
private String opAttr;
|
||||
|
||||
@SerializedName("Name")
|
||||
@NotNull(message = "事件信息名称,不为空")
|
||||
private String name;
|
||||
|
||||
@SerializedName("Idx")
|
||||
@NotNull(message = "事件编号,不为空")
|
||||
private Integer idx;
|
||||
|
||||
@SerializedName("Parm")
|
||||
private List<WaveParamDto> param;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.njcn.access.pojo.dto.data;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/8/29 15:40
|
||||
*/
|
||||
@Data
|
||||
public class WaveParamDto implements Serializable {
|
||||
|
||||
@SerializedName("Name")
|
||||
@NotNull(message = "参数名称,不为空")
|
||||
private String name;
|
||||
|
||||
@SerializedName("Type")
|
||||
@NotNull(message = "参数类型,不为空")
|
||||
private String type;
|
||||
|
||||
@SerializedName("Data")
|
||||
@NotNull(message = "参数值,不为空")
|
||||
private Object data;
|
||||
|
||||
}
|
||||
@@ -95,4 +95,8 @@ public class TemplateDto implements Serializable {
|
||||
@ApiModelProperty("控制")
|
||||
private List<CtrlDto> ctrlDto;
|
||||
|
||||
@SerializedName("Wave")
|
||||
@ApiModelProperty("波形文件")
|
||||
private List<WaveDto> waveDto;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user