panlei
2019-08-23 e9d0ba14154d623898803a294a25db634a9ceec7
router/router.go
@@ -39,6 +39,7 @@
   pollConfigController := new(controllers.PollConfigController)
   fileController := new(controllers.FileController)
   sysMenuController :=new(controllers.SysMenuController)
   clusterController :=new(controllers.ClusterController)
   sysApi := r.Group(  "/data/api-u/sys")
@@ -123,7 +124,7 @@
      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)
   }
@@ -224,6 +225,18 @@
      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") // 静态文件