去除lombok依赖-后续考虑引入
This commit is contained in:
parent
c43404cb35
commit
99598f1654
5
pom.xml
5
pom.xml
@ -57,11 +57,6 @@
|
|||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
|
||||||
<groupId>org.projectlombok</groupId>
|
|
||||||
<artifactId>lombok</artifactId>
|
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||||
|
@ -1,21 +1,14 @@
|
|||||||
package com.genersoft.iot.vmp.common.enums;
|
package com.genersoft.iot.vmp.common.enums;
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSONObject;
|
|
||||||
import com.genersoft.iot.vmp.gb28181.utils.XmlUtil;
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Getter;
|
|
||||||
import org.dom4j.Element;
|
import org.dom4j.Element;
|
||||||
import org.springframework.util.ObjectUtils;
|
import org.springframework.util.ObjectUtils;
|
||||||
|
|
||||||
import static com.genersoft.iot.vmp.gb28181.utils.XmlUtil.getText;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author gaofuwang
|
* @author gaofuwang
|
||||||
* @date 2023/01/18/ 10:09:00
|
* @date 2023/01/18/ 10:09:00
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
@Getter
|
|
||||||
@AllArgsConstructor
|
|
||||||
public enum DeviceControlType {
|
public enum DeviceControlType {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -60,6 +53,19 @@ public enum DeviceControlType {
|
|||||||
|
|
||||||
private final String desc;
|
private final String desc;
|
||||||
|
|
||||||
|
DeviceControlType(String val, String desc) {
|
||||||
|
this.val = val;
|
||||||
|
this.desc = desc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getVal() {
|
||||||
|
return val;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDesc() {
|
||||||
|
return desc;
|
||||||
|
}
|
||||||
|
|
||||||
public static DeviceControlType typeOf(Element rootElement) {
|
public static DeviceControlType typeOf(Element rootElement) {
|
||||||
for (DeviceControlType item : DeviceControlType.values()) {
|
for (DeviceControlType item : DeviceControlType.values()) {
|
||||||
if (!ObjectUtils.isEmpty(rootElement.element(item.val)) || !ObjectUtils.isEmpty(rootElement.elements(item.val))) {
|
if (!ObjectUtils.isEmpty(rootElement.element(item.val)) || !ObjectUtils.isEmpty(rootElement.elements(item.val))) {
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
package com.genersoft.iot.vmp.gb28181.bean;
|
package com.genersoft.iot.vmp.gb28181.bean;
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过redis分发报警消息
|
* 通过redis分发报警消息
|
||||||
*/
|
*/
|
||||||
@Data
|
|
||||||
public class AlarmChannelMessage {
|
public class AlarmChannelMessage {
|
||||||
/**
|
/**
|
||||||
* 国标编号
|
* 国标编号
|
||||||
@ -25,4 +23,35 @@ public class AlarmChannelMessage {
|
|||||||
*/
|
*/
|
||||||
private String alarmDescription;
|
private String alarmDescription;
|
||||||
|
|
||||||
|
public String getGbId() {
|
||||||
|
return gbId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGbId(String gbId) {
|
||||||
|
this.gbId = gbId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getAlarmSn() {
|
||||||
|
return alarmSn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAlarmSn(int alarmSn) {
|
||||||
|
this.alarmSn = alarmSn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getAlarmType() {
|
||||||
|
return alarmType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAlarmType(int alarmType) {
|
||||||
|
this.alarmType = alarmType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAlarmDescription() {
|
||||||
|
return alarmDescription;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAlarmDescription(String alarmDescription) {
|
||||||
|
this.alarmDescription = alarmDescription;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
package com.genersoft.iot.vmp.gb28181.bean;
|
package com.genersoft.iot.vmp.gb28181.bean;
|
||||||
|
|
||||||
import com.genersoft.iot.vmp.gb28181.utils.MessageElement;
|
import com.genersoft.iot.vmp.gb28181.utils.MessageElement;
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import javax.validation.constraints.NotNull;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备信息查询响应
|
* 设备信息查询响应
|
||||||
@ -13,7 +9,6 @@ import java.util.List;
|
|||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @date 2022/6/28 14:55
|
* @date 2022/6/28 14:55
|
||||||
*/
|
*/
|
||||||
@Data
|
|
||||||
public class DragZoomRequest {
|
public class DragZoomRequest {
|
||||||
/**
|
/**
|
||||||
* 序列号
|
* 序列号
|
||||||
@ -33,7 +28,6 @@ public class DragZoomRequest {
|
|||||||
/**
|
/**
|
||||||
* 基本参数
|
* 基本参数
|
||||||
*/
|
*/
|
||||||
@Data
|
|
||||||
public static class DragZoom {
|
public static class DragZoom {
|
||||||
/**
|
/**
|
||||||
* 播放窗口长度像素值
|
* 播放窗口长度像素值
|
||||||
@ -66,5 +60,84 @@ public class DragZoomRequest {
|
|||||||
@MessageElement("LengthY")
|
@MessageElement("LengthY")
|
||||||
protected Integer lengthY;
|
protected Integer lengthY;
|
||||||
|
|
||||||
|
public Integer getLength() {
|
||||||
|
return length;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLength(Integer length) {
|
||||||
|
this.length = length;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getWidth() {
|
||||||
|
return width;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWidth(Integer width) {
|
||||||
|
this.width = width;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getMidPointX() {
|
||||||
|
return midPointX;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMidPointX(Integer midPointX) {
|
||||||
|
this.midPointX = midPointX;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getMidPointY() {
|
||||||
|
return midPointY;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMidPointY(Integer midPointY) {
|
||||||
|
this.midPointY = midPointY;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getLengthX() {
|
||||||
|
return lengthX;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLengthX(Integer lengthX) {
|
||||||
|
this.lengthX = lengthX;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getLengthY() {
|
||||||
|
return lengthY;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLengthY(Integer lengthY) {
|
||||||
|
this.lengthY = lengthY;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSn() {
|
||||||
|
return sn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSn(String sn) {
|
||||||
|
this.sn = sn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeviceId() {
|
||||||
|
return deviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeviceId(String deviceId) {
|
||||||
|
this.deviceId = deviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DragZoom getDragZoomIn() {
|
||||||
|
return dragZoomIn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDragZoomIn(DragZoom dragZoomIn) {
|
||||||
|
this.dragZoomIn = dragZoomIn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DragZoom getDragZoomOut() {
|
||||||
|
return dragZoomOut;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDragZoomOut(DragZoom dragZoomOut) {
|
||||||
|
this.dragZoomOut = dragZoomOut;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package com.genersoft.iot.vmp.gb28181.bean;
|
package com.genersoft.iot.vmp.gb28181.bean;
|
||||||
|
|
||||||
import com.genersoft.iot.vmp.gb28181.utils.MessageElement;
|
import com.genersoft.iot.vmp.gb28181.utils.MessageElement;
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备信息查询响应
|
* 设备信息查询响应
|
||||||
@ -10,7 +9,6 @@ import lombok.Data;
|
|||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @date 2022/6/28 14:55
|
* @date 2022/6/28 14:55
|
||||||
*/
|
*/
|
||||||
@Data
|
|
||||||
public class HomePositionRequest {
|
public class HomePositionRequest {
|
||||||
/**
|
/**
|
||||||
* 序列号
|
* 序列号
|
||||||
@ -28,7 +26,6 @@ public class HomePositionRequest {
|
|||||||
/**
|
/**
|
||||||
* 基本参数
|
* 基本参数
|
||||||
*/
|
*/
|
||||||
@Data
|
|
||||||
public static class HomePosition {
|
public static class HomePosition {
|
||||||
/**
|
/**
|
||||||
* 播放窗口长度像素值
|
* 播放窗口长度像素值
|
||||||
@ -46,5 +43,52 @@ public class HomePositionRequest {
|
|||||||
@MessageElement("PresetIndex")
|
@MessageElement("PresetIndex")
|
||||||
protected String presetIndex;
|
protected String presetIndex;
|
||||||
|
|
||||||
|
public String getEnabled() {
|
||||||
|
return enabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEnabled(String enabled) {
|
||||||
|
this.enabled = enabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getResetTime() {
|
||||||
|
return resetTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResetTime(String resetTime) {
|
||||||
|
this.resetTime = resetTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPresetIndex() {
|
||||||
|
return presetIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPresetIndex(String presetIndex) {
|
||||||
|
this.presetIndex = presetIndex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSn() {
|
||||||
|
return sn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSn(String sn) {
|
||||||
|
this.sn = sn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeviceId() {
|
||||||
|
return deviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeviceId(String deviceId) {
|
||||||
|
this.deviceId = deviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HomePosition getHomePosition() {
|
||||||
|
return homePosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHomePosition(HomePosition homePosition) {
|
||||||
|
this.homePosition = homePosition;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package com.genersoft.iot.vmp.gb28181.bean;
|
package com.genersoft.iot.vmp.gb28181.bean;
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -10,7 +9,6 @@ import java.util.List;
|
|||||||
* @author: swwheihei
|
* @author: swwheihei
|
||||||
* @date: 2020年5月8日 下午2:05:56
|
* @date: 2020年5月8日 下午2:05:56
|
||||||
*/
|
*/
|
||||||
@Data
|
|
||||||
public class RecordInfo {
|
public class RecordInfo {
|
||||||
|
|
||||||
private String deviceId;
|
private String deviceId;
|
||||||
@ -84,4 +82,12 @@ public class RecordInfo {
|
|||||||
public void setLastTime(Instant lastTime) {
|
public void setLastTime(Instant lastTime) {
|
||||||
this.lastTime = lastTime;
|
this.lastTime = lastTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getCount() {
|
||||||
|
return count;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCount(int count) {
|
||||||
|
this.count = count;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user