From 7df8eae7c06792d107f82cd3d6ea5e529c3da998 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 04 三月 2020 17:20:04 +0800
Subject: [PATCH] add sensor

---
 controllers/camera.go |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/controllers/camera.go b/controllers/camera.go
index 16633b6..bea1cc0 100644
--- a/controllers/camera.go
+++ b/controllers/camera.go
@@ -40,6 +40,20 @@
 	RunEnable   bool   `json:"run_enable"`    //鎺у埗瀹炴椂澶勭悊鎴栬疆璇㈠鐞嗙殑寮�鍏�
 	RunType     int    `json:"run_type"`      //澶勭悊绫诲瀷锛�0锛氳疆璇紝1锛氬疄鏃�
 	RunServerId string `json:"run_server_id"` //褰撳墠姝e湪澶勭悊鐨勫垎鏋愭湇鍔″櫒id
+
+	Sensors []SensorVo `json:"sensors"` //浼犳劅鍣ㄥ垪琛�
+}
+
+type SensorVo struct {
+	Id        string       `json:"id"`
+	Type 	  int 		   `json:"type"`
+	Ip 		  string       `json:"ip"`
+	Port 	  int 		   `json:"port"`
+	Username  string       `json:"username"`
+	Password  string 	   `json:"password"`
+	Threshold int 		   `json:"threshold"`
+	Enable 	  bool 		   `json:"enable"`
+	DevId  	  string       `json:"devId"`
 }
 
 // @Summary 娣诲姞鎽勫儚鏈�

--
Gitblit v1.8.0