var _ServerCodeMap;
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
// 状态码
export var ServerCode = {
  SUCCESS: 200,
  CACHE: 300,
  CONTINUE: 400,
  WRONG_PARAM: 401,
  WRONG_REQUEST: 402,
  FORBIDDEN: 403,
  WRONG_URL: 404,
  NO_LOGIN: 406,
  TIME_OUT: 408,
  WRONG_SERVER: 500,
  WRONG_REALIZE: 501,
  WRONG_GATEWAY: 502,
  BAD_SERVER: 503,
  GATEWAY_TIME_OUT: 504,
  WRONG_VERSION: 505
};
export var ServerCodeMap = (_ServerCodeMap = {}, _defineProperty(_ServerCodeMap, ServerCode.SUCCESS, '成功'), _defineProperty(_ServerCodeMap, ServerCode.CONTINUE, '继续'), _defineProperty(_ServerCodeMap, ServerCode.WRONG_PARAM, '参数格式出错'), _defineProperty(_ServerCodeMap, ServerCode.WRONG_REQUEST, '请求出错'), _defineProperty(_ServerCodeMap, ServerCode.FORBIDDEN, '拒绝访问'), _defineProperty(_ServerCodeMap, ServerCode.WRONG_URL, '请求地址出错'), _defineProperty(_ServerCodeMap, ServerCode.NO_LOGIN, '未登录'), _defineProperty(_ServerCodeMap, ServerCode.TIME_OUT, '请求超时'), _defineProperty(_ServerCodeMap, ServerCode.WRONG_SERVER, '服务器内部错误'), _defineProperty(_ServerCodeMap, ServerCode.WRONG_REALIZE, '服务未实现'), _defineProperty(_ServerCodeMap, ServerCode.WRONG_GATEWAY, '网关错误'), _defineProperty(_ServerCodeMap, ServerCode.BAD_SERVER, '服务不可用'), _defineProperty(_ServerCodeMap, ServerCode.GATEWAY_TIME_OUT, '网关超时'), _defineProperty(_ServerCodeMap, ServerCode.WRONG_VERSION, 'HTTP版本不受支持'), _ServerCodeMap);