fix
liuxiaolong
2019-12-04 fa441753409d0e83f8fb3c9d00ee1abae2ec98dd
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") // 静态文件