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