模拟直连设备在APP注册接入
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
package com.njcn.access.param;
|
||||
|
||||
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/7/5 16:25
|
||||
*/
|
||||
@Data
|
||||
public class DevAccessParam implements Serializable {
|
||||
|
||||
@ApiModelProperty("项目id")
|
||||
@NotNull(message = "项目id不能为空")
|
||||
private String projectId;
|
||||
|
||||
@ApiModelProperty("区域")
|
||||
private String area;
|
||||
|
||||
@ApiModelProperty("拓扑图id")
|
||||
@NotNull(message = "拓扑图id不能为空")
|
||||
private String topologyDiagram;
|
||||
|
||||
@ApiModelProperty("设备识别码")
|
||||
@NotNull(message = "设备识别码不能为空")
|
||||
private String nDid;
|
||||
|
||||
@ApiModelProperty("监测点集合")
|
||||
@NotNull(message = "监测点集合不能为空")
|
||||
private List<LineParam> list;
|
||||
|
||||
@Data
|
||||
public static class LineParam {
|
||||
|
||||
@ApiModelProperty("监测点名称")
|
||||
@NotNull(message = "监测点名称不能为空")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("安装位置")
|
||||
@NotNull(message = "安装位置不能为空")
|
||||
private String position;
|
||||
|
||||
@ApiModelProperty("电压等级")
|
||||
@NotNull(message = "电压等级不能为空")
|
||||
private String volGrade;
|
||||
|
||||
@ApiModelProperty("PT变比")
|
||||
@NotNull(message = "PT变比不能为空")
|
||||
private String ptRatio;
|
||||
|
||||
@ApiModelProperty("CT变比")
|
||||
@NotNull(message = "CT变比不能为空")
|
||||
private String ctRatio;
|
||||
|
||||
@ApiModelProperty("中心点经度")
|
||||
@NotNull(message = "中心点经度不能为空")
|
||||
private Double lng;
|
||||
|
||||
@ApiModelProperty("中心点纬度")
|
||||
@NotNull(message = "中心点纬度不能为空")
|
||||
private Double lat;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
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 "";
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user