From a527225f7f3cc93882aa870c20f0985d07d6fe92 Mon Sep 17 00:00:00 2001
From: sunty <suntianyu0923@163.com>
Date: 星期四, 22 八月 2019 18:12:03 +0800
Subject: [PATCH] set yn main port 7100

---
 controllers/area.go |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/controllers/area.go b/controllers/area.go
index 9825af2..4d5771f 100644
--- a/controllers/area.go
+++ b/controllers/area.go
@@ -28,10 +28,27 @@
 	parentIdStr := c.Query("parentid")
 	searchTypeStr := c.Query("searchType")
 	cameraName := c.Query("cameraName")
-	treeType := c.Query("type")
 
 	var api dbapi.AreaApi
-	arr := api.GetLocalCameraTree(parentIdStr, searchTypeStr, cameraName, treeType)
+	arr := api.GetLocalCameraTree(parentIdStr, searchTypeStr, cameraName)
+	util.ResponseFormat(c, code.Success, arr)
+}
+
+// @Summary 鏄剧ずGb28181鏍戝舰缁撴瀯
+// @Description 鏄剧ずGb28181鏍戝舰缁撴瀯
+// @Produce json
+// @Tags menu
+// @Param parentid query int true "鍖哄煙鐨刬d"
+// @Success 200 {string} json "{"code":200, msg:"鐩綍缁撴瀯鏁版嵁"}"
+// @Failure 500 {string} json "{"code":500,  msg:"杩斿洖閿欒淇℃伅"}"
+// @Router /data/api-v/area/localmenu [get]
+func (ac AreaController) CameraGb28181Tree(c *gin.Context) {
+	parentIdStr := c.Query("parentid")
+	searchTypeStr := c.Query("searchType")
+	cameraName := c.Query("cameraName")
+
+	var api dbapi.AreaApi
+	arr := api.GetGb28181CameraTree(parentIdStr, searchTypeStr, cameraName)
 	util.ResponseFormat(c, code.Success, arr)
 }
 

--
Gitblit v1.8.0