| | |
| | | } |
| | | |
| | | var ( |
| | | LicenseExpired = &Code{http.StatusForbidden, false, "license expired"} |
| | | // Success 请求处理成功 |
| | | Success = &Code{http.StatusOK, true, "请求处理成功"} |
| | | AddSuccess = &Code{http.StatusOK, true, "添加成功"} |
| | |
| | | // RequestParamError 请求参数错误 |
| | | RequestParamError = &Code{http.StatusBadRequest, false, "请求参数有误"} |
| | | // AccountPassUnmatch 该账号原密码不匹配 |
| | | AccountPassUnmatch = &Code{http.StatusBadRequest, false, "该账号原密码不匹配"} |
| | | AccountPassUnmatch = &Code{http.StatusOK, false, "该账号原密码不匹配"} |
| | | // SignupPassUnmatch 注册两次输入密码不匹配 |
| | | SignupPassUnmatch = &Code{http.StatusBadRequest, false, "注册两次输入密码不匹配"} |
| | | // AccountNameExist 账号昵称重复,请更换为其他昵称 |
| | |
| | | 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, "升级失败"} |
| | | ) |