liuxiaolong
2020-05-30 aa91d7884e7fef55b47d6a4905596f72a5ef1ac3
router/router.go
@@ -47,6 +47,7 @@
   fileSettingC := new(controllers.FileAnalysisSettingController)
    icController := new(controllers.InfoController)
    gb28181C := new(controllers.Gb28181Controller)
    fStackC := new(controllers.FileStackController)
   urlPrefix := "/data/api-v" // wp 添加 路径 前缀
@@ -226,6 +227,8 @@
      vdbperson.POST("/joinDbTable", dbPersonCont.JoinDbTable)
      vdbperson.POST("/move", dbPersonCont.Move)
      vdbperson.POST("/copy", dbPersonCont.Copy)
      vdbperson.POST("/multiUploadCarNo", dbPersonCont.MultiUploadCarNo)
   }
   // 系统设置 操作
@@ -254,6 +257,8 @@
      vsset.GET("/patchUpdate", ssController.PatchUpdateCheck)
      vsset.POST("/patchUpdate", ssController.PatchUpdate)
      vsset.POST("/upgrade", ssController.Upgrade)
      vsset.POST("/sdkInstall", ssController.SdkInstall)
   }
    ic := r.Group(urlPrefix + "/info")
@@ -323,6 +328,11 @@
      fileAnalyApi.POST("/updateStatus", fileAnalysisC.UpdateStatus)
      fileAnalyApi.POST("/delete", fileAnalysisC.Delete)
      fileAnalyApi.POST("/sortFile", fileAnalysisC.SortFile)
      fileAnalyApi.GET("/findByStackId", fileAnalysisC.FindByStackId)
      fileAnalyApi.POST("/move", fileAnalysisC.Move)
      fileAnalyApi.POST("/rename", fileAnalysisC.Rename)
      fileAnalyApi.POST("/copy", fileAnalysisC.Copy)
   }
   fileSettingApi := r.Group(urlPrefix + "/fileSetting")
   {
@@ -330,6 +340,15 @@
      fileSettingApi.POST("/changeEnable", fileSettingC.ChangeEnable)
   }
    fStackApi := r.Group(urlPrefix +"/fileStack")
    {
        fStackApi.GET("/findAllByPage",fStackC.FindAllByPage)
        fStackApi.POST("/save",fStackC.Save)
        fStackApi.GET("/show/:id", fStackC.Show)
        fStackApi.POST("/changeEnable", fStackC.ChangeEnable)
        fStackApi.DELETE("/delete/:id", fStackC.Delete)
    }
   // 文件 上传
   r.Static("static", "./static") // 静态文件
   //外部访问swagger.json