| | |
| | | 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 添加 路径 前缀 |
| | | |
| | |
| | | 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") // 静态文件 |