From 9d88c7c467f8d93af4aab9ba0b6d6c01c2ffc546 Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期四, 20 八月 2020 20:35:30 +0800
Subject: [PATCH] add get buckets contrl

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

diff --git a/controllers/camera.go b/controllers/camera.go
index ea2b91b..fc7a82c 100644
--- a/controllers/camera.go
+++ b/controllers/camera.go
@@ -45,6 +45,9 @@
 	ResolutionHeight int   `json:"resolution_height"`//鍒嗚鲸鐜囬珮
 
 	Sensors []SensorVo `json:"sensors"` //浼犳劅鍣ㄥ垪琛�
+
+	VoiceEnable 		bool 	   				`json:"voiceEnable"`
+	VoiceId 			string 	   				`json:"voiceId"`
 }
 
 type Resolution struct {
@@ -112,6 +115,7 @@
 		util.ResponseFormat(c, code.RequestParamError, "鍙傛暟閿欒")
 		return
 	}
+	logger.Debug("camera sensors:", cam.Sensors)
 	paramBody := util.Struct2Map(cam)
 	if api.CameraUpdate(paramBody) {
 		util.ResponseFormat(c, code.Success, cam)
@@ -161,6 +165,10 @@
 	//2019-11-02鏂板闇�姹傦紝鏄剧ず姣忎釜鎽勫儚鏈虹殑澶勭悊鏈嶅姟鍣ㄤ俊鎭�,褰掑睘鐨勮妭鐐规湇鍔″櫒鍚嶇О
 	m := util.Struct2Map(camera)
 	m["runServerName"] = ""
+	m["voiceEnable"] = camera.VoiceEnable
+	m["voiceId"] = camera.VoiceId
+	m["resolution_width"] = camera.ResolutionWidth
+	m["resolution_height"] = camera.ResolutionHeight
 	//鎽勫儚鏈哄垎杈ㄧ巼
 	dRe0 := Resolution{
 		Width: 0,

--
Gitblit v1.8.0