UNPKG

nsn-enum

Version:

NSN枚举组件

99 lines (68 loc) 2.48 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ResponseCode = void 0; /** * 一般响应状态码,前缀<code>RP</code> */ var ResponseCode; exports.ResponseCode = ResponseCode; (function (ResponseCode) { /** 成功 */ ResponseCode["SUCCESS"] = "000"; /** 未知错误 */ ResponseCode["UNKNOW_ERROR"] = "RP001"; /** 请求错误 */ ResponseCode["REQUEST_ERROR"] = "RP002"; /** 数据验证错误 */ ResponseCode["VALIDATE_ERROR"] = "RP003"; /** 数据转换错误 */ ResponseCode["CONVERT_ERROR"] = "RP004"; /** 数据底层访问错误 */ ResponseCode["DATA_ACCESS_ERROR"] = "RP005"; /** 服务器开小差,请稍后再试 */ ResponseCode["INTERNAL_ERROR"] = "RP006"; /** 权限错误 */ ResponseCode["PERMISSION_ERROR"] = "RP007"; /** 参数错误 */ ResponseCode["ILLEGAL_ARGUMENT"] = "RP008"; /** 网络繁忙,请稍后再试 */ ResponseCode["API_GATEWAY_ERROR"] = "RP009"; /** 参数错误 */ ResponseCode["PARAM_ERROR"] = "RP010"; /** 远程服务出问题啦 */ ResponseCode["RPC_ERROR"] = "RP011"; /** 远程服务参数格式不可读取 */ ResponseCode["RPC_MESSAGE_ERROR"] = "RP012"; /** 不支持该媒体类型 */ ResponseCode["UNSUPPORTED_MEDIA_TYPE"] = "RP013"; /** 不允许使用请求行中所指定的方法,请确保为所请求的资源设置了正确的 MIME 类型 */ ResponseCode["METHOD_NOT_ALLOWED"] = "RP014"; /** 找不到所请求的资源 */ ResponseCode["NOT_FOUND"] = "RP015"; /** 网络拥挤,请稍后再试试 */ ResponseCode["TRAFFIC_LIMITING"] = "RP016"; /** 凭据验证错误 */ ResponseCode["AUTHENTICATION_ERROR"] = "RP017"; // /** 不要重复登录 */ ResponseCode["ALREADY_LOGGED_IN"] = "LG001"; /** 还未登录 */ ResponseCode["NOT_LOGGED_IN"] = "LG002"; /** 登录已失效 */ ResponseCode["EXPIRED"] = "LG003"; /** 账号或密码错误 */ ResponseCode["INCORRECT_PRINCIPAL"] = "LG004"; /** 账号已被禁用 */ ResponseCode["DISABLED"] = "LG005"; /** 账号已被锁定 */ ResponseCode["LOCKED"] = "LG006"; /** 登录失败 */ ResponseCode["LOGIN_FAIL"] = "LG007"; /** 用户权限不可识别 */ ResponseCode["RIGHTS_ERROR"] = "LG008"; /** 已被强制下线 */ ResponseCode["FORCED_OFFLINE"] = "LG009"; /** 验证码错误 */ ResponseCode["CAPTCHA_ERROR"] = "LG010"; })(ResponseCode || (exports.ResponseCode = ResponseCode = {}));