| | |
| | | // 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, "删除成功"} |
| | |
| | | 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, "用户名或密码错误"} |
| | |
| | | AddClusterInfoErr = &Code{http.StatusInternalServerError, false, "加入节点失败!"} |
| | | |
| | | UpgradeSuccess = &Code{http.StatusOK, true, "升级成功"} |
| | | UpgradeFail = &Code{http.StatusInternalServerError, false, "升级失败"} |
| | | UpgradeFail = &Code{http.StatusInternalServerError, false, "升级失败"} |
| | | FailedQuery = &Code{http.StatusInternalServerError, false, "查询失败"} |
| | | ) |