From 847da9b0c6f0719cf2b4acb17dbff122feb6c508 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 04 十二月 2019 18:05:51 +0800
Subject: [PATCH] fix

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

diff --git a/router/router.go b/router/router.go
index bb66024..253b880 100644
--- a/router/router.go
+++ b/router/router.go
@@ -45,6 +45,8 @@
 	sysRoleController := new(controllers.RoleController)
 	ptzController := new(controllers.PanTiltZoomController)
 	licenseController := new(controllers.LicenseController)
+	fileAnalysisC := new(controllers.FileAnalysisController)
+	fileSettingC := new(controllers.FileAnalysisSettingController)
 
 	urlPrefix := "/data/api-v" // wp 娣诲姞 璺緞 鍓嶇紑
 
@@ -274,6 +276,7 @@
 		pollCApi.POST("/savePollDelay", pollConfigController.SavePollDelay)
 		pollCApi.GET("/getPollConfig", pollConfigController.GetPollConfig)
 		pollCApi.POST("/updateEnable", pollConfigController.UpdateEnable)
+		pollCApi.POST("/updateChannelCount", pollConfigController.UpdateChannelCount)
 	}
 	clusterApi := r.Group(urlPrefix + "/cluster")
 	{
@@ -287,6 +290,18 @@
 		clusterApi.POST("/updateClusterName", clusterController.UpdateClusterName)
 		clusterApi.POST("/leave", clusterController.Leave)
 	}
+	fileAnalyApi := r.Group(urlPrefix + "/fileAnalysis")
+	{
+		fileAnalyApi.GET("/findAllFile", fileAnalysisC.FindAllFile)
+		fileAnalyApi.POST("/updateStatus",fileAnalysisC.UpdateStatus)
+		fileAnalyApi.POST("/delete",fileAnalysisC.Delete)
+		fileAnalyApi.POST("/sortFile",fileAnalysisC.SortFile)
+	}
+	fileSettingApi := r.Group(urlPrefix + "/fileSetting")
+	{
+		fileSettingApi.GET("/show",fileSettingC.Show)
+		fileSettingApi.POST("/changeEnable", fileSettingC.ChangeEnable)
+	}
 
 	// 鏂囦欢 涓婁紶
 	r.Static("static", "./static") // 闈欐�佹枃浠�

--
Gitblit v1.8.0