From f1d079f9c0b3d384090477ca54e0548373d62b57 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Thu, 16 Jan 2025 11:56:39 +0800
Subject: [PATCH] 配置修改

---
 src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java |  183 +++++++++++++++++++++++++++++++++++++++------
 1 files changed, 159 insertions(+), 24 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java
index 01d340c..631efbf 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java
@@ -1,37 +1,62 @@
 package com.genersoft.iot.vmp.gb28181.bean;
 
 
+import io.swagger.v3.oas.annotations.media.Schema;
+
+/**
+ * 国标设备/平台
+ * @author lin
+ */
+@Schema(description = "国标设备/平台")
 public class Device {
 
 	/**
-	 * 设备Id
+	 * 设备国标编号
 	 */
+	@Schema(description = "设备国标编号")
 	private String deviceId;
+
+	/**
+	 * 纬度
+	 */
+	@Schema(description = "纬度")
+	private String latitude;
+
+	/**
+	 * 经度
+	 */
+	@Schema(description = "经度")
+	private String longitude;
 
 	/**
 	 * 设备名
 	 */
+	@Schema(description = "名称")
 	private String name;
-	
+
 	/**
 	 * 生产厂商
 	 */
-	private String manufacturer;
-	
+	@Schema(description = "生产厂商")
+	private String manufacture;
+
 	/**
 	 * 型号
 	 */
+	@Schema(description = "型号")
 	private String model;
-	
+
 	/**
 	 * 固件版本
 	 */
+	@Schema(description = "固件版本")
 	private String firmware;
 
 	/**
 	 * 传输协议
 	 * UDP/TCP
 	 */
+	@Schema(description = "传输协议(UDP/TCP)")
 	private String transport;
 
 	/**
@@ -40,81 +65,143 @@
 	 * TCP-ACTIVE:tcp主动模式
 	 * TCP-PASSIVE:tcp被动模式
 	 */
+	@Schema(description = "数据流传输模式")
 	private String streamMode;
 
 	/**
 	 * wan地址_ip
 	 */
+	@Schema(description = "IP")
 	private String  ip;
 
 	/**
 	 * wan地址_port
 	 */
+	@Schema(description = "端口")
 	private int port;
 
 	/**
 	 * wan地址
 	 */
+	@Schema(description = "wan地址")
 	private String  hostAddress;
-	
+
 	/**
 	 * 在线
 	 */
+	@Schema(description = "是否在线,1为在线,0为离线")
 	private int online;
 
 
 	/**
 	 * 注册时间
 	 */
+	@Schema(description = "注册时间")
 	private String registerTime;
 
 
 	/**
 	 * 心跳时间
 	 */
+	@Schema(description = "心跳时间")
 	private String keepaliveTime;
 
 	/**
 	 * 通道个数
 	 */
+	@Schema(description = "通道个数")
 	private int channelCount;
 
 	/**
 	 * 注册有效期
 	 */
+	@Schema(description = "注册有效期")
 	private int expires;
 
 	/**
 	 * 创建时间
 	 */
+	@Schema(description = "创建时间")
 	private String createTime;
 
 	/**
 	 * 更新时间
 	 */
+	@Schema(description = "更新时间")
 	private String updateTime;
 
 	/**
 	 * 设备使用的媒体id, 默认为null
 	 */
+	@Schema(description = "设备使用的媒体id, 默认为null")
 	private String mediaServerId;
-
-	/**
-	 * 首次注册
-	 */
-	private boolean firsRegister;
 
 	/**
 	 * 字符集, 支持 UTF-8 与 GB2312
 	 */
+	@Schema(description = "符集, 支持 UTF-8 与 GB2312")
 	private String charset ;
 
 	/**
 	 * 目录订阅周期,0为不订阅
 	 */
-	private int subscribeCycleForCatalog ;
+	@Schema(description = "目录订阅周期,0为不订阅")
+	private int subscribeCycleForCatalog;
 
+	/**
+	 * 移动设备位置订阅周期,0为不订阅
+	 */
+	@Schema(description = "移动设备位置订阅周期,0为不订阅")
+	private int subscribeCycleForMobilePosition;
 
+	/**
+	 * 移动设备位置信息上报时间间隔,单位:秒,默认值5
+	 */
+	@Schema(description = "移动设备位置信息上报时间间隔,单位:秒,默认值5")
+	private int mobilePositionSubmissionInterval = 5;
+
+	/**
+	 * 报警订阅周期,0为不订阅
+	 */
+	@Schema(description = "报警心跳时间订阅周期,0为不订阅")
+	private int subscribeCycleForAlarm;
+
+	/**
+	 * 是否开启ssrc校验,默认关闭,开启可以防止串流
+	 */
+	@Schema(description = "是否开启ssrc校验,默认关闭,开启可以防止串流")
+	private boolean ssrcCheck = true;
+
+	/**
+	 * 地理坐标系, 目前支持 WGS84,GCJ02
+	 */
+	@Schema(description = "地理坐标系, 目前支持 WGS84,GCJ02")
+	private String geoCoordSys;
+
+	/**
+	 * 树类型 国标规定了两种树的展现方式 行政区划:CivilCode 和业务分组:BusinessGroup
+	 */
+	@Schema(description = "树类型 国标规定了两种树的展现方式 行政区划:CivilCode 和业务分组:BusinessGroup")
+	private String treeType;
+
+	@Schema(description = "密码")
+	private String password;
+
+	public String getLatitude() {
+		return latitude;
+	}
+
+	public void setLatitude(String latitude) {
+		this.latitude = latitude;
+	}
+
+	public String getLongitude() {
+		return longitude;
+	}
+
+	public void setLongitude(String longitude) {
+		this.longitude = longitude;
+	}
 
 	public String getDeviceId() {
 		return deviceId;
@@ -132,12 +219,12 @@
 		this.name = name;
 	}
 
-	public String getManufacturer() {
-		return manufacturer;
+	public String getmanufacture() {
+		return manufacture;
 	}
 
-	public void setManufacturer(String manufacturer) {
-		this.manufacturer = manufacturer;
+	public void setmanufacture(String manufacture) {
+		this.manufacture = manufacture;
 	}
 
 	public String getModel() {
@@ -260,14 +347,6 @@
 		this.mediaServerId = mediaServerId;
 	}
 
-	public boolean isFirsRegister() {
-		return firsRegister;
-	}
-
-	public void setFirsRegister(boolean firsRegister) {
-		this.firsRegister = firsRegister;
-	}
-
 	public String getCharset() {
 		return charset;
 	}
@@ -283,4 +362,60 @@
 	public void setSubscribeCycleForCatalog(int subscribeCycleForCatalog) {
 		this.subscribeCycleForCatalog = subscribeCycleForCatalog;
 	}
+
+	public int getSubscribeCycleForMobilePosition() {
+		return subscribeCycleForMobilePosition;
+	}
+
+	public void setSubscribeCycleForMobilePosition(int subscribeCycleForMobilePosition) {
+		this.subscribeCycleForMobilePosition = subscribeCycleForMobilePosition;
+	}
+
+	public int getMobilePositionSubmissionInterval() {
+		return mobilePositionSubmissionInterval;
+	}
+
+	public void setMobilePositionSubmissionInterval(int mobilePositionSubmissionInterval) {
+		this.mobilePositionSubmissionInterval = mobilePositionSubmissionInterval;
+	}
+
+	public int getSubscribeCycleForAlarm() {
+		return subscribeCycleForAlarm;
+	}
+
+	public void setSubscribeCycleForAlarm(int subscribeCycleForAlarm) {
+		this.subscribeCycleForAlarm = subscribeCycleForAlarm;
+	}
+
+	public boolean isSsrcCheck() {
+		return ssrcCheck;
+	}
+
+	public void setSsrcCheck(boolean ssrcCheck) {
+		this.ssrcCheck = ssrcCheck;
+	}
+
+	public String getGeoCoordSys() {
+		return geoCoordSys;
+	}
+
+	public void setGeoCoordSys(String geoCoordSys) {
+		this.geoCoordSys = geoCoordSys;
+	}
+
+	public String getTreeType() {
+		return treeType;
+	}
+
+	public void setTreeType(String treeType) {
+		this.treeType = treeType;
+	}
+
+	public String getPassword() {
+		return password;
+	}
+
+	public void setPassword(String password) {
+		this.password = password;
+	}
 }

--
Gitblit v1.9.3