From ccb9c97bb53a7eee868fd4232fb027ef5c5d1ea2 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期三, 04 十二月 2019 17:39:38 +0800 Subject: [PATCH] fix fileSetting show --- router/router.go | 27 +++++++++++++++++++++++++-- 1 files changed, 25 insertions(+), 2 deletions(-) diff --git a/router/router.go b/router/router.go index dced050..253b880 100644 --- a/router/router.go +++ b/router/router.go @@ -44,6 +44,18 @@ clusterController := new(controllers.ClusterController) 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 娣诲姞 璺緞 鍓嶇紑 + + licenseApi :=r.Group(urlPrefix+"/license") + { + licenseApi.POST("/getRegisterCode", licenseController.GetRegisterCode) + licenseApi.POST("/save", licenseController.Save) + licenseApi.GET("/show", licenseController.Show) + } sysApi := r.Group("/data/api-u/sys") { @@ -68,8 +80,6 @@ userApi.POST("/saveAuth", userController.SaveAuth) userApi.POST("/updatePwd", userController.UpdatePwd) } - - urlPrefix := "/data/api-v" // wp 娣诲姞 璺緞 鍓嶇紑 //鍖哄煙绠$悊 area := r.Group(urlPrefix + "/area") @@ -266,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") { @@ -279,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