| | |
| | | } |
| | | |
| | | var ( |
| | | LicenseExpired = &Code{http.StatusForbidden, false, "license expired"} |
| | | // Success 请求处理成功 |
| | | Success = &Code{http.StatusOK, true, "请求处理成功"} |
| | | AddSuccess = &Code{http.StatusOK, true, "添加成功"} |
| | | UploadSuccess = &Code{http.StatusOK, true, "上传成功"} |
| | | UpdateSuccess = &Code{http.StatusOK, true, "更新成功"} |
| | | UpdateFail = &Code{http.StatusBadRequest, false, "更新失败"} |
| | | DelSuccess = &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 账号昵称重复,请更换为其他昵称 |
| | |
| | | UploadSuffixError = &Code{http.StatusBadRequest, false, "该上传文件格式目前暂不支持"} |
| | | // UploadSizeLimit 目前上传仅支持小于5M的文件内容 |
| | | UploadSizeLimit = &Code{http.StatusBadRequest, false, "目前上传仅支持小于5M的文件内容"} |
| | | InvalidRequest = &Code{http.StatusBadRequest, false, "请求无效"} |
| | | LoginSuccess = &Code{http.StatusOK, true, "登录成功"} |
| | | // SigninInfoError 账户名或密码有误 |
| | | LoginInfoError = &Code{http.StatusUnauthorized, false, "用户名或密码错误"} |
| | |
| | | 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, "升级失败"} |
| | | FailedQuery = &Code{http.StatusInternalServerError, false, "查询失败"} |
| | | ) |