| | |
| | | pollConfigController := new(controllers.PollConfigController) |
| | | fileController := new(controllers.FileController) |
| | | sysMenuController :=new(controllers.SysMenuController) |
| | | clusterController :=new(controllers.ClusterController) |
| | | |
| | | |
| | | sysApi := r.Group( "/data/api-u/sys") |
| | |
| | | task.GET("/delTaskSdk", taskController.DeleteTaskSdk) |
| | | task.POST("/updateTaskName", taskController.UpdateTaskName) |
| | | task.GET("/getRulesByTaskSdk", taskController.GetRulesByTaskSdk) |
| | | task.POST("/deleteTaskSdkRuleById", taskController.DeleteTaskSdkRuleById) |
| | | task.POST("/deleteTaskSdkRule", taskController.DeleteTaskSdkRule) |
| | | task.POST("/saveTaskSdkRule", taskController.SaveTaskSdkRule) |
| | | } |
| | | |
| | |
| | | pollCApi.GET("/getPollConfig", pollConfigController.GetPollConfig) |
| | | pollCApi.POST("/updateEnable", pollConfigController.UpdateEnable) |
| | | } |
| | | clusterApi := r.Group(urlPrefix+"/cluster") |
| | | { |
| | | clusterApi.GET("/findCluster", clusterController.FindCluster) |
| | | clusterApi.GET("/randomPwd", clusterController.RandomPwd) |
| | | clusterApi.POST("/create", clusterController.Create) |
| | | clusterApi.POST("/search", clusterController.Search) |
| | | clusterApi.POST("/stopSearching", clusterController.StopSearching) |
| | | clusterApi.GET("/getSearchNodes", clusterController.GetSearchNodes) |
| | | clusterApi.POST("/joinCluster", clusterController.JoinCluster) |
| | | clusterApi.POST("/updateClusterName", clusterController.UpdateClusterName) |
| | | clusterApi.POST("/leave", clusterController.Leave) |
| | | } |
| | | |
| | | // 文件 上传 |
| | | r.Static("static", "./static") // 静态文件 |