liuxiaolong
2019-12-03 3704b2de230fd00ad6a71ffbbfadf0229194ec3c
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 添加 路径 前缀
@@ -287,6 +289,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") // 静态文件