extend/code/code.go
@@ -65,4 +65,7 @@ CreateFirstNodeErr = &Code{http.StatusInternalServerError, false, "创建节点失败!"} QueryClusterInfoErr = &Code{http.StatusInternalServerError, false, "查询失败,请确认您的ip是正确的!"} AddClusterInfoErr = &Code{http.StatusInternalServerError, false, "加入节点失败!"} UpgradeSuccess = &Code{http.StatusOK, true, "升级成功"} UpgradeFail = &Code{http.StatusInternalServerError, false, "升级失败"} )