From ea5df990ee13cf2ca03b0ee757f2f67c789cb93c Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 21 八月 2019 13:14:48 +0800
Subject: [PATCH] tagList get from sqlite

---
 router/router.go |   32 ++++++++++++++++++++++++--------
 1 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/router/router.go b/router/router.go
index 75c1a0f..ac00538 100644
--- a/router/router.go
+++ b/router/router.go
@@ -44,7 +44,8 @@
 	sysApi := r.Group(  "/data/api-u/sys")
 	{
 		sysApi.POST("/login",userController.Login)
-		sysApi.POST("/logout",userController.Logout)
+		sysApi.GET("/logout",userController.Logout)
+		sysApi.POST("refresh_token",userController.RefreshToken)
 	}
 	sysMenuApi := r.Group("/data/api-u/sysmenus")
 	{
@@ -61,6 +62,7 @@
 	area := r.Group(urlPrefix + "/area")
 	{
 		area.GET("/localmenu", areaController.CameraTree)
+		area.GET("/gb28181Tree",areaController.CameraGb28181Tree)
 		area.POST("/add", areaController.AreaAdd)
 		area.POST("/del", areaController.AreaDelete)
 		area.POST("/update", areaController.AreaUpdate)
@@ -91,6 +93,7 @@
 		cameraTaskArgsApi.GET("/deleteByGroup", cameraTaskArgsController.DeleteByGroup)
 		cameraTaskArgsApi.POST("/getLinkRulesByCameraIds", cameraTaskArgsController.GetLinkRulesByCameraIds)
 		cameraTaskArgsApi.POST("/saveLinkRulesByGroup", cameraTaskArgsController.SaveLinkRulesByGroup)
+		cameraTaskArgsApi.POST("/updateDefenceStateByGroup",cameraTaskArgsController.UpdateDefenceStateByGroup)
 	}
 
 	cameraTaskApi := r.Group(urlPrefix + "/cameraTask")
@@ -115,9 +118,13 @@
 		task.GET("/findAll", taskController.FindAll)
 		task.POST("/addTask", taskController.AddTask)
 		task.POST("/updateTaskStatus", taskController.UpdateTaskStatus)
-		task.GET("/deleteTask", taskController.DeleteTask)
-		task.GET("/addTaskSdk", taskController.AddTaskSdk)
-		task.GET("/deleteTaskSdk", taskController.DeleteTaskSdk)
+		task.GET("/delete", taskController.DeleteTask)
+		task.POST("/addTaskSdk", taskController.AddTaskSdk)
+		task.GET("/delTaskSdk", taskController.DeleteTaskSdk)
+		task.POST("/updateTaskName", taskController.UpdateTaskName)
+		task.GET("/getRulesByTaskSdk", taskController.GetRulesByTaskSdk)
+		task.POST("/deleteTaskSdkRule", taskController.DeleteTaskSdkRule)
+		task.POST("/saveTaskSdkRule", taskController.SaveTaskSdkRule)
 	}
 
 	// 妫�绱� 鏌ヨ
@@ -134,14 +141,15 @@
 	{
 		realTime.POST("/capture", realTimeController.PostCapture)
 		realTime.POST("/monitoring", realTimeController.PostMonitoring)
-		realTime.POST("/action", realTimeController.PostAction)
+		realTime.POST("/initForCaptureData", realTimeController.InitForCaptureData)
+		realTime.POST("/initForMonitoringData", realTimeController.InitForMonitoringData)
 	}
 	//搴曞簱 鎿嶄綔
 	vdbtable := r.Group(urlPrefix + "/dbtable")
 	{
 		vdbtable.POST("/queryDbTables/:isSync", tableController.QueryDbTables)
 		vdbtable.POST("/updateDbTables", tableController.UpdateDbTables)
-		vdbtable.POST("/deleteDBtablesById/:uuid", tableController.DeleteDbTables)
+		vdbtable.POST("/deleteDBtablesById/:id", tableController.DeleteDbTables)
 		vdbtable.PUT("/addDbTableInfo", tableController.AddDbTableInfo)
 	}
 
@@ -156,6 +164,8 @@
 		vdbperson.PUT("/addDbPerson", dbPersonCont.AddDbPerson)
 
 		vdbperson.POST("/fileUploadTest", fileController.UploadPersonTest)
+		vdbperson.POST("/faceExtract",fileController.FaceExtract)
+		vdbperson.POST("/searchByPhoto",fileController.SearchByPhoto)
 	}
 
 	// 绯荤粺璁剧疆 鎿嶄綔
@@ -167,8 +177,8 @@
 		vsset.POST("/videoLenEdit", ssController.VideoLenEdit)
 		vsset.GET("/getDevInfo", ssController.GetDevInfo)
 		vsset.POST("/saveDevInfo", ssController.SaveDevInfo)
-		vsset.GET("/vSSLocalSettingShow", ssController.VSSLocalSettingShow)
-		vsset.POST("/vSSLocalSettingEdit", ssController.VSSLocalSettingEdit)
+		vsset.GET("/gb28181ConfigShow", ssController.Gb28181ConfigShow)
+		vsset.POST("/gb28181ConfigEdit", ssController.Gb28181ConfigEdit)
 	}
 
 	//绠楁硶搴撴搷浣�
@@ -180,6 +190,12 @@
 		sdkApi.GET("/getById", sdkController.GetById)
 	}
 
+	//绠楁硶鍙傛暟
+	sdkArgApi :=r.Group(urlPrefix + "/sdkArg")
+	{
+		sdkArgApi.GET("/getSdkArgs", sdkController.GetSdkArgs)
+	}
+
 	cameraTimeApi := r.Group(urlPrefix + "/cameraTimerule")
 	{
 		cameraTimeApi.POST("/save", cameraTimeRuleController.Save)

--
Gitblit v1.8.0