新增物接入流程
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package com.njcn.access.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @date 2023年04月17日 10:50
|
||||
*/
|
||||
@Getter
|
||||
public enum AccessResponseEnum {
|
||||
|
||||
/**
|
||||
* A0301 ~ A0399 用于用户模块的枚举
|
||||
* <p>
|
||||
*/
|
||||
MODEL_REPEAT("A0301", "模板重复,请勿重复录入!"),
|
||||
;
|
||||
|
||||
private final String code;
|
||||
|
||||
private final String message;
|
||||
|
||||
AccessResponseEnum(String code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.njcn.access.param;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* 序列化时,调整实体返回名称
|
||||
* @author 徐扬
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER})
|
||||
public @interface ParamName {
|
||||
|
||||
String value() default "";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.njcn.access.pojo.dto;
|
||||
|
||||
import com.njcn.access.param.ParamName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/3/31 14:04
|
||||
*/
|
||||
@Data
|
||||
public class AccessDto implements Serializable {
|
||||
|
||||
@ParamName("NDID")
|
||||
private String nDid;
|
||||
|
||||
@ParamName("dev_type")
|
||||
private String devType;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.access.pojo.dto;
|
||||
|
||||
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/4/10 10:47
|
||||
*/
|
||||
@Data
|
||||
public class DevCfgDto implements Serializable {
|
||||
|
||||
@SerializedName("DID")
|
||||
private String did;
|
||||
|
||||
@SerializedName("DevType")
|
||||
private String devType;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.njcn.access.pojo.dto;
|
||||
|
||||
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/4/10 10:14
|
||||
*/
|
||||
@Data
|
||||
public class DevModelDto implements Serializable {
|
||||
|
||||
@SerializedName("DevType")
|
||||
private String devType;
|
||||
|
||||
@SerializedName("Version")
|
||||
private String versionNo;
|
||||
|
||||
@SerializedName("Time")
|
||||
private String versionDate;
|
||||
|
||||
@SerializedName("Crc")
|
||||
private String crc;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.access.pojo.dto;
|
||||
|
||||
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/4/10 10:54
|
||||
*/
|
||||
@Data
|
||||
public class ModelDto implements Serializable {
|
||||
|
||||
@SerializedName("DevCfg")
|
||||
private List<DevCfgDto> devCfg;
|
||||
|
||||
@SerializedName("DevMod")
|
||||
private List<DevModelDto> devMod;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.njcn.access.pojo.dto;
|
||||
|
||||
import com.njcn.access.param.ParamName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/3/31 14:04
|
||||
*/
|
||||
@Data
|
||||
public class PublicDto implements Serializable {
|
||||
|
||||
private String mid;
|
||||
|
||||
@ParamName("NDID")
|
||||
private String nDid;
|
||||
|
||||
private Long timestamp;
|
||||
|
||||
private String type;
|
||||
|
||||
private AccessDto param;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.njcn.access.pojo.dto;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/12 19:18
|
||||
*/
|
||||
@Data
|
||||
public class PublicParamDTO implements Serializable {
|
||||
|
||||
/**
|
||||
* 在请求报文中该值为请求 ID,在设备主动上报数据的报文中该字段可不填写
|
||||
*/
|
||||
@SerializedName("mid")
|
||||
private Integer mid;
|
||||
|
||||
@SerializedName("userId")
|
||||
private String userId;
|
||||
|
||||
@SerializedName("deviceId")
|
||||
private String deviceId;
|
||||
|
||||
@SerializedName("timestamp")
|
||||
private String timestamp;
|
||||
|
||||
/**
|
||||
* 报文处理的优先级
|
||||
*/
|
||||
@SerializedName("level")
|
||||
private Integer level;
|
||||
|
||||
@SerializedName("type")
|
||||
private String type;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.njcn.access.pojo.dto;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/11 14:36
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class RegisterDTO extends PublicParamDTO implements Serializable {
|
||||
|
||||
/**
|
||||
* 请求参数
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class RegisterRequest extends RegisterDTO implements Serializable{
|
||||
|
||||
@SerializedName("expire")
|
||||
private Integer expire;
|
||||
|
||||
@SerializedName("param")
|
||||
private RegisterParamDTO.RegisterParamRequest param;
|
||||
}
|
||||
|
||||
/**
|
||||
* 应答参数
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class RegisterResponse extends RegisterDTO implements Serializable{
|
||||
|
||||
@SerializedName("code")
|
||||
private Integer code;
|
||||
|
||||
@SerializedName("msg")
|
||||
private String msg;
|
||||
|
||||
@SerializedName("param")
|
||||
private RegisterParamDTO.RegisterParamResponse param;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.njcn.access.pojo.dto;
|
||||
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/11 14:58
|
||||
*/
|
||||
@Data
|
||||
public class RegisterParamDTO implements Serializable {
|
||||
|
||||
@SerializedName("NDID")
|
||||
private String nDid;
|
||||
|
||||
@SerializedName("DID")
|
||||
private List<String> did;
|
||||
|
||||
/**
|
||||
* 请求参数
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class RegisterParamRequest extends RegisterParamDTO implements Serializable{
|
||||
@SerializedName("type")
|
||||
private Integer type;
|
||||
}
|
||||
|
||||
/**
|
||||
* 应答参数
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public static class RegisterParamResponse extends RegisterParamDTO implements Serializable{
|
||||
@SerializedName("res")
|
||||
private Integer res;
|
||||
|
||||
@SerializedName("type")
|
||||
private Integer resType;
|
||||
|
||||
@SerializedName("NDID")
|
||||
private String nDid;
|
||||
|
||||
@SerializedName("DEV_TYPE")
|
||||
private String dev_type;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.njcn.access.pojo.dto.data;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/13 14:45
|
||||
*/
|
||||
@Data
|
||||
public class AlmDto implements Serializable {
|
||||
|
||||
@SerializedName("Name")
|
||||
private String name;
|
||||
|
||||
@SerializedName("IDX")
|
||||
private Integer idx;
|
||||
|
||||
@SerializedName("Type")
|
||||
private String type;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.njcn.access.pojo.dto.data;
|
||||
|
||||
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 2022/3/13 15:06
|
||||
*/
|
||||
@Data
|
||||
public class CtrlDto implements Serializable {
|
||||
|
||||
@SerializedName("Name")
|
||||
private String name;
|
||||
|
||||
@SerializedName("IDX")
|
||||
private Integer idx;
|
||||
|
||||
@SerializedName("Type")
|
||||
private String type;
|
||||
|
||||
@SerializedName("Check")
|
||||
private Integer remoteCheck;
|
||||
|
||||
@SerializedName("Auto")
|
||||
private Integer auto;
|
||||
|
||||
@SerializedName("MaxNum")
|
||||
private Integer maxNum;
|
||||
|
||||
@SerializedName("MinNum")
|
||||
private Integer minNum;
|
||||
|
||||
@SerializedName("Ctlvalue")
|
||||
private List<String> ctlValue;
|
||||
|
||||
@SerializedName("Strlen")
|
||||
private Integer strLen;
|
||||
|
||||
@SerializedName("Encode")
|
||||
private Integer encode;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.njcn.access.pojo.dto.data;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/13 14:57
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class DiDto extends StsDto implements Serializable {
|
||||
|
||||
@SerializedName("TranFlag")
|
||||
private Integer tranFlag;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.njcn.access.pojo.dto.data;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/13 14:59
|
||||
*/
|
||||
@Data
|
||||
public class DoDto implements Serializable {
|
||||
|
||||
@SerializedName("Name")
|
||||
private String name;
|
||||
|
||||
@SerializedName("IDX")
|
||||
private Integer idx;
|
||||
|
||||
@SerializedName("CurSts")
|
||||
private Integer curSts;
|
||||
|
||||
@SerializedName("CtlSts")
|
||||
private Integer ctlSts;
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.njcn.access.pojo.dto.data;
|
||||
|
||||
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 2022/3/13 14:27
|
||||
*/
|
||||
@Data
|
||||
public class EpdPqdDto implements Serializable {
|
||||
|
||||
@SerializedName("Name")
|
||||
private String name;
|
||||
|
||||
@SerializedName("IDX")
|
||||
private Integer idx;
|
||||
|
||||
@SerializedName("Type")
|
||||
private String type;
|
||||
|
||||
@SerializedName("Phase")
|
||||
private String phase;
|
||||
|
||||
@SerializedName("Unit")
|
||||
private String unit;
|
||||
|
||||
@SerializedName("HarmStart")
|
||||
private String harmStart;
|
||||
|
||||
@SerializedName("HarmEnd")
|
||||
private String harmEnd;
|
||||
|
||||
@SerializedName("ClassID")
|
||||
private String classId;
|
||||
|
||||
@SerializedName("StatMethod")
|
||||
private List<String> statMethod;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.njcn.access.pojo.dto.data;
|
||||
|
||||
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 2022/3/13 14:40
|
||||
*/
|
||||
@Data
|
||||
public class EvtDto implements Serializable {
|
||||
|
||||
@SerializedName("Name")
|
||||
private String name;
|
||||
|
||||
@SerializedName("IDX")
|
||||
private Integer idx;
|
||||
|
||||
@SerializedName("Type")
|
||||
private String type;
|
||||
|
||||
@SerializedName("Parm")
|
||||
private List<EvtParamDto> 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 java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/13 14:41
|
||||
*/
|
||||
@Data
|
||||
public class EvtParamDto implements Serializable {
|
||||
|
||||
@SerializedName("Name")
|
||||
private String name;
|
||||
|
||||
@SerializedName("Type")
|
||||
private String type;
|
||||
|
||||
@SerializedName("Unit")
|
||||
private String unit;
|
||||
|
||||
@SerializedName("Data")
|
||||
private String data;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.njcn.access.pojo.dto.data;
|
||||
|
||||
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 2022/3/13 14:48
|
||||
*/
|
||||
@Data
|
||||
public class MdDto implements Serializable {
|
||||
|
||||
@SerializedName("Name")
|
||||
private String name;
|
||||
|
||||
@SerializedName("IDX")
|
||||
private Integer idx;
|
||||
|
||||
@SerializedName("Type")
|
||||
private String type;
|
||||
|
||||
@SerializedName("Unit")
|
||||
private String unit;
|
||||
|
||||
@SerializedName("Phase")
|
||||
private String phase;
|
||||
|
||||
@SerializedName("ClassID")
|
||||
private String classId;
|
||||
|
||||
@SerializedName("StatMethod")
|
||||
private List<String> statMethod;
|
||||
|
||||
@SerializedName("TranRule")
|
||||
private String tranRule;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.njcn.access.pojo.dto.data;
|
||||
|
||||
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 2022/3/13 15:02
|
||||
*/
|
||||
@Data
|
||||
public class ParDto implements Serializable {
|
||||
|
||||
@SerializedName("Name")
|
||||
private String name;
|
||||
|
||||
@SerializedName("IDX")
|
||||
private Integer idx;
|
||||
|
||||
@SerializedName("Type")
|
||||
private String type;
|
||||
|
||||
@SerializedName("DataType")
|
||||
private String dataType;
|
||||
|
||||
@SerializedName("ModifyFlag")
|
||||
private Integer modifyFlag;
|
||||
|
||||
@SerializedName("MaxNum")
|
||||
private Integer maxNum;
|
||||
|
||||
@SerializedName("MinNum")
|
||||
private Integer minNum;
|
||||
|
||||
@SerializedName("SetValue")
|
||||
private List<String> setValue;
|
||||
|
||||
@SerializedName("Strlen")
|
||||
private Integer strLen;
|
||||
|
||||
@SerializedName("DefaultValue")
|
||||
private String defaultValue;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.njcn.access.pojo.dto.data;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/13 14:52
|
||||
*/
|
||||
@Data
|
||||
public class StsDto implements Serializable {
|
||||
|
||||
@SerializedName("Name")
|
||||
private String name;
|
||||
|
||||
@SerializedName("IDX")
|
||||
private Integer idx;
|
||||
|
||||
@SerializedName("StoreFlag")
|
||||
private Integer storeFlag;
|
||||
|
||||
@SerializedName("CurSts")
|
||||
private Integer curSts;
|
||||
|
||||
@SerializedName("ClassID")
|
||||
private String classId;
|
||||
|
||||
@SerializedName("TranRule")
|
||||
private String tranRule;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
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/4/10 16:35
|
||||
*/
|
||||
@Data
|
||||
public class CfgDto implements Serializable {
|
||||
|
||||
@SerializedName("DevModName")
|
||||
private String name;
|
||||
|
||||
@SerializedName("DevModVersion")
|
||||
private String version;
|
||||
|
||||
@SerializedName("DevModTime")
|
||||
private String time;
|
||||
|
||||
@SerializedName("ID")
|
||||
private String id;
|
||||
|
||||
@SerializedName("DevType")
|
||||
private String type;
|
||||
|
||||
@SerializedName("DevApp")
|
||||
private String devApp;
|
||||
|
||||
@SerializedName("DevInfo")
|
||||
private DevInfoDTO devInfo;
|
||||
|
||||
@SerializedName("Province")
|
||||
private String province;
|
||||
|
||||
@SerializedName("City")
|
||||
private String city;
|
||||
|
||||
@SerializedName("County")
|
||||
private String county;
|
||||
|
||||
@SerializedName("Address")
|
||||
private String address;
|
||||
|
||||
@SerializedName("Position")
|
||||
private String position;
|
||||
|
||||
@SerializedName("LineNum")
|
||||
private Integer lineNum;
|
||||
|
||||
@SerializedName("FileFrameLength")
|
||||
private Integer fileFrameLength;
|
||||
|
||||
@SerializedName("FileFrameTimeout")
|
||||
private Integer fileFrameTimeout;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/13 12:09
|
||||
*/
|
||||
@Data
|
||||
public class CpuInfoDTO implements Serializable {
|
||||
|
||||
@SerializedName("CpuCore")
|
||||
private Integer cpuCore;
|
||||
|
||||
@SerializedName("CpuFreq")
|
||||
private Float cpuFreq;
|
||||
|
||||
@SerializedName("Arch")
|
||||
private String arch;
|
||||
|
||||
@SerializedName("CpuLmt")
|
||||
private Float cpuLmt;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/13 15:18
|
||||
*/
|
||||
@Data
|
||||
public class DataArrayDto implements Serializable {
|
||||
|
||||
@SerializedName("Type")
|
||||
private String type;
|
||||
|
||||
@SerializedName("IDX")
|
||||
private Integer idx;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
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/4/10 16:20
|
||||
*/
|
||||
@Data
|
||||
public class DataDto implements Serializable {
|
||||
@SerializedName("TEMPLATE")
|
||||
private TemplateDetailDto template;
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
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 2022/3/13 14:21
|
||||
*/
|
||||
@Data
|
||||
public class DataSetDTO implements Serializable {
|
||||
|
||||
@SerializedName("Name")
|
||||
private String name;
|
||||
|
||||
@SerializedName("IDX")
|
||||
private Integer idx;
|
||||
|
||||
@SerializedName("DataType")
|
||||
private String dataType;
|
||||
|
||||
@SerializedName("StartTime")
|
||||
private String startTime;
|
||||
|
||||
@SerializedName("Period")
|
||||
private Integer period;
|
||||
|
||||
@SerializedName("StoreFlag")
|
||||
private Integer storeFlag;
|
||||
|
||||
@SerializedName("DataArray")
|
||||
private List<DataArrayDto> dataArray;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
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/4/10 16:26
|
||||
*/
|
||||
@Data
|
||||
public class DevCfgDetailDto implements Serializable {
|
||||
|
||||
@SerializedName("Name")
|
||||
private String name;
|
||||
|
||||
@SerializedName("Version")
|
||||
private String version;
|
||||
|
||||
@SerializedName("Time")
|
||||
private String time;
|
||||
|
||||
@SerializedName("Cfg")
|
||||
private List<CfgDto> cfg;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/13 12:08
|
||||
*/
|
||||
@Data
|
||||
public class DevInfoDTO implements Serializable {
|
||||
|
||||
@SerializedName("DevType")
|
||||
private String devType;
|
||||
|
||||
@SerializedName("DevName")
|
||||
private String devName;
|
||||
|
||||
@SerializedName("MsgInfo")
|
||||
private String msgInfo;
|
||||
|
||||
@SerializedName("DevStatus")
|
||||
private String devStatus;
|
||||
|
||||
@SerializedName("HardVer")
|
||||
private String hardVer;
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import com.njcn.access.pojo.dto.data.*;
|
||||
import com.njcn.access.pojo.dto.data.ParDto;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/4/10 16:26
|
||||
*/
|
||||
@Data
|
||||
public class DevModDetailDto implements Serializable {
|
||||
|
||||
@SerializedName("Name")
|
||||
private String name;
|
||||
|
||||
@SerializedName("Version")
|
||||
private String version;
|
||||
|
||||
@SerializedName("Time")
|
||||
private String time;
|
||||
|
||||
@SerializedName("IDX")
|
||||
private Integer idx;
|
||||
|
||||
@SerializedName("DevType")
|
||||
private String devType;
|
||||
|
||||
@SerializedName("DataList")
|
||||
private List<String> dataList;
|
||||
|
||||
@SerializedName("DataSet")
|
||||
private List<DataSetDTO> dataSet;
|
||||
|
||||
@SerializedName("IClk")
|
||||
private String iclk;
|
||||
|
||||
@SerializedName("EClk")
|
||||
private String eclk;
|
||||
|
||||
@SerializedName("LineNum")
|
||||
private Integer lineNum;
|
||||
|
||||
@SerializedName("EPD")
|
||||
private List<EpdPqdDto> epd;
|
||||
|
||||
@SerializedName("PQD")
|
||||
private List<EpdPqdDto> pqd;
|
||||
|
||||
@SerializedName("EVT")
|
||||
private List<EvtDto> evt;
|
||||
|
||||
@SerializedName("ALM")
|
||||
private List<AlmDto> alm;
|
||||
|
||||
@SerializedName("MD")
|
||||
private List<MdDto> md;
|
||||
|
||||
@SerializedName("STS")
|
||||
private List<StsDto> sts;
|
||||
|
||||
@SerializedName("DI")
|
||||
private List<DiDto> di;
|
||||
|
||||
@SerializedName("DO")
|
||||
private List<DoDto> doDTO;
|
||||
|
||||
@SerializedName("Param")
|
||||
private List<ParDto> param;
|
||||
|
||||
@SerializedName("CTRL")
|
||||
private List<CtrlDto> ctrl;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/13 12:09
|
||||
*/
|
||||
@Data
|
||||
public class DiskInfoDTO implements Serializable {
|
||||
|
||||
@SerializedName("DiskPhy")
|
||||
private Float diskPhy;
|
||||
|
||||
@SerializedName("DiskUsePhy")
|
||||
private Float diskUsePhy;
|
||||
|
||||
@SerializedName("DiskLmt")
|
||||
private Float diskLmt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/13 12:09
|
||||
*/
|
||||
@Data
|
||||
public class MemInfoDTO implements Serializable {
|
||||
|
||||
@SerializedName("MemPhy")
|
||||
private Float memPhy;
|
||||
|
||||
@SerializedName("MemVirt")
|
||||
private Float memVirt;
|
||||
|
||||
@SerializedName("MemLmt")
|
||||
private Float memLmt;
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
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/4/10 16:25
|
||||
*/
|
||||
@Data
|
||||
public class NetDevModDto implements Serializable {
|
||||
|
||||
@SerializedName("Name")
|
||||
private String name;
|
||||
|
||||
@SerializedName("Version")
|
||||
private String version;
|
||||
|
||||
@SerializedName("Time")
|
||||
private String time;
|
||||
|
||||
@SerializedName("DevName")
|
||||
private String devName;
|
||||
|
||||
@SerializedName("DevType")
|
||||
private String devType;
|
||||
|
||||
@SerializedName("NetType")
|
||||
private String netType;
|
||||
|
||||
@SerializedName("NDID")
|
||||
private String nDid;
|
||||
|
||||
@SerializedName("DevTopicVer")
|
||||
private String devTopicVer;
|
||||
|
||||
@SerializedName("Uid")
|
||||
private String uid;
|
||||
|
||||
@SerializedName("CUid")
|
||||
private List<String> cUid;
|
||||
|
||||
@SerializedName("DevInfo")
|
||||
private DevInfoDTO devInfoDTO;
|
||||
|
||||
@SerializedName("CpuInfo")
|
||||
private CpuInfoDTO cpuInfoDTO;
|
||||
|
||||
@SerializedName("MemInfo")
|
||||
private MemInfoDTO memInfoDTO;
|
||||
|
||||
@SerializedName("DiskInfo")
|
||||
private DiskInfoDTO diskInfoDTO;
|
||||
|
||||
@SerializedName("SoftInfo")
|
||||
private SoftInfoDTO softInfoDTO;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
|
||||
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/4/10 16:18
|
||||
*/
|
||||
@Data
|
||||
public class ParamDto implements Serializable {
|
||||
|
||||
@SerializedName("Data_Type")
|
||||
private String dataType;
|
||||
|
||||
@SerializedName("Data_Array")
|
||||
private List<DataDto> dataArray;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/3/13 12:09
|
||||
*/
|
||||
@Data
|
||||
public class SoftInfoDTO implements Serializable {
|
||||
|
||||
@SerializedName("OsName")
|
||||
private String osName;
|
||||
|
||||
@SerializedName("OsVersion")
|
||||
private String osVersion;
|
||||
|
||||
@SerializedName("AppVersion")
|
||||
private String appVersion;
|
||||
|
||||
@SerializedName("AppDate")
|
||||
private String appDate;
|
||||
|
||||
@SerializedName("AppCheck")
|
||||
private String appCheck;
|
||||
|
||||
@SerializedName("Softupdate")
|
||||
private String softUpdate;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
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/4/10 16:22
|
||||
*/
|
||||
@Data
|
||||
public class TemplateDetailDto implements Serializable {
|
||||
|
||||
@SerializedName("NetDevMod")
|
||||
private NetDevModDto netDevModDto;
|
||||
|
||||
@SerializedName("DevCfg")
|
||||
private DevCfgDetailDto devCfgDetailDto;
|
||||
|
||||
@SerializedName("DevMod")
|
||||
private List<DevModDetailDto> devModDetailDto;
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.njcn.access.pojo.dto.devModel;
|
||||
|
||||
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/4/10 16:16
|
||||
*/
|
||||
@Data
|
||||
public class TemplateDto implements Serializable {
|
||||
|
||||
@SerializedName("mid")
|
||||
private Integer mid;
|
||||
|
||||
@SerializedName("deviceId")
|
||||
private String deviceId;
|
||||
|
||||
@SerializedName("timestamp")
|
||||
private String timestamp;
|
||||
|
||||
@SerializedName("type")
|
||||
private String type;
|
||||
|
||||
@SerializedName("param")
|
||||
private ParamDto param;
|
||||
|
||||
@SerializedName("code")
|
||||
private Integer code;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.njcn.access.pojo.param;
|
||||
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/4/10 13:56
|
||||
*/
|
||||
@Data
|
||||
public class DevModelParam {
|
||||
|
||||
@ApiModelProperty(value = "模板文件")
|
||||
@NotNull(message="模板文件不能为空!")
|
||||
private MultipartFile file;
|
||||
|
||||
@ApiModelProperty(value = "装置类型")
|
||||
@NotNull(message="装置类型不能为空!")
|
||||
private String devType;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user