From c38c4bda17e3774ec0fd58f90ba5e59e1f0639a2 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 30 十月 2019 16:39:29 +0800
Subject: [PATCH] swagger add ApiKeyAuth

---
 router/router.go |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/router/router.go b/router/router.go
index 440edef..2d1530d 100644
--- a/router/router.go
+++ b/router/router.go
@@ -42,6 +42,7 @@
 	sysMenuController := new(controllers.SysMenuController)
 	clusterController := new(controllers.ClusterController)
 	sysRoleController := new(controllers.RoleController)
+	ptController := new(controllers.PanTiltController)
 
 	sysApi := r.Group("/data/api-u/sys")
 	{
@@ -99,6 +100,9 @@
 		camera.POST("/updateRunEnable", cameraController.UpdateRunEnable)
 		camera.POST("/changeRunType", cameraController.ChangeRunType)
 		camera.GET("/getAllCamerasByServer", cameraController.GetAllCamerasByServer)
+
+		camera.POST("/ptControl", ptController.Controlling)
+		camera.GET("/statisticRunInfo", cameraController.StatisticRunInfo)
 	}
 
 	cameraTaskArgsApi := r.Group(urlPrefix + "/cameraTaskArgs")
@@ -203,6 +207,9 @@
 		vsset.POST("/updateClock", ssController.SetSysClock)
 		vsset.GET("/ntpTest", ssController.TestNTPServer)
 		vsset.GET("/sysinfo", ssController.GetSysInfo)
+		vsset.GET("/sysThresholds", ssController.GetSysThresholds)
+
+		vsset.GET("/reboot", ssController.RebootOS)
 	}
 
 	//绠楁硶搴撴搷浣�

--
Gitblit v1.8.0