CabinetServiceMock.js 4.09 KB
export const CABINET_GETALL_INPUT={
  "result": true,
  "faultCode": 0,
  "faultCause": null,
  "returnValue": [
    {
      "cabinetKey": "15465696005280003",
      "locationKey": "15465694305390000",
      "cabinetName": "中心机架1-001",
      "cabinetType": "服务器机柜",
      "height": "100",
      "depth": "100",
      "width": "100",
      "frameCount": 100,
      "voltage": "220",
      "delFlag": 0,
      "modifyTime": "20190315.153316.302"
    }]};
export const CABINET_GETALL_OUTPUT={'15465696005280003':{
    "cabinetKey": "15465696005280003",
    "locationKey": "15465694305390000",
    "cabinetName": "中心机架1-001",
    "cabinetType": "服务器机柜",
    "height": "100",
    "depth": "100",
    "width": "100",
    "frameCount": 100,
    "voltage": "220",
    "delFlag": 0,
    "modifyTime": "20190315.153316.302"
  }};

// addCabinet(cabinet)
export const CABINET_ADD_CLIENT = {
  "cabinetKey": "15465696005280003",
  "locationKey": "15465694305390000",
  "cabinetName": "中心机架1-001",
  "cabinetType": "服务器机柜",
  "height": "100",
  "depth": "100",
  "width": "100",
  "frameCount": 100,
  "voltage": "220",
  "delFlag": 0,
  "modifyTime": "20190315.153316.302"
}
export const CABINET_ADD_INPUT = {
  "result": true,
  "faultCode": 0,
  "faultCause": null,
  "returnValue": {
    "cabinetKey": "15465696005280003",
    "locationKey": "15465694305390000",
    "cabinetName": "中心机架1-001",
    "cabinetType": "服务器机柜",
    "height": "100",
    "depth": "100",
    "width": "100",
    "frameCount": 100,
    "voltage": "220",
    "delFlag": 0,
    "modifyTime": "20190315.153316.302"
  }
}
export const CABINET_ADD_OUTPUT = null;

// deleteCabinets(cabinetKeyList)
export const CABINET_DELETE_CLIENT = [15465696005280003]
export const CABINET_DELETE_INPUT = {
  "result": true,
  "faultCode": 0,
  "faultCause": null,
  "returnValue": 26
}
export const CABINET_DELETE_OUTPUT = null;

// modifyCabinet(cabinet)
export const CABINET_MODDIFY_CLIENT = {
  "cabinetKey": "15465696005280003",
  "locationKey": "15465694305390000",
  "cabinetName": "中心机架1-001",
  "cabinetType": "服务器机柜",
  "height": "100",
  "depth": "100",
  "width": "100",
  "frameCount": 100,
  "voltage": "220",
  "delFlag": 0,
  "modifyTime": "20190315.153316.302"
}
export const CABINET_MODDIFY_INPUT = {
  "result": true,
  "faultCode": 0,
  "faultCause": null,
  "returnValue": {
    "cabinetKey": "15465696005280003",
    "locationKey": "15465694305390000",
    "cabinetName": "中心机架1-001",
    "cabinetType": "服务器机柜",
    "height": "100",
    "depth": "100",
    "width": "100",
    "frameCount": 100,
    "voltage": "220",
    "delFlag": 0,
    "modifyTime": "20190315.153316.302"
  }
}
export const CABINET_MODDIFY_OUTPUT = null;

// conditionQueryCabinet(conditionSet)
export const CABINET_QUERY_CLIENT =[{
  "quaryAttribute":"cabinetName",
  "compareSymbol":"==",
  "compareValue":"中心机架1-001"}];
export const CABINET_QUERY_INPUT = {
  "result": true,
  "faultCode": 0,
  "faultCause": null,
  "returnValue": [
    {
      "cabinetKey": "15465696005280003",
      "locationKey": "15465694305390000",
      "cabinetName": "中心机架1-001",
      "cabinetType": "服务器机柜",
      "height": "100",
      "depth": "100",
      "width": "100",
      "frameCount": 100,
      "voltage": "220",
      "delFlag": 0,
      "modifyTime": "20190315.153316.302"
    }
  ]
};
export const CABINET_QUERY_OUTPUT = { '15465696005280003':
    {   "cabinetKey": "15465696005280003",
      "locationKey": "15465694305390000",
      "cabinetName": "中心机架1-001",
      "cabinetType": "服务器机柜",
      "height": "100",
      "depth": "100",
      "width": "100",
      "frameCount": 100,
      "voltage": "220",
      "delFlag": 0,
      "modifyTime": "20190315.153316.302"} };

// downloadCabinet(conditionSet)
export const CABINET_DOWNLOAD_CLIENT = null;
export const CABINET_DOWNLOAD_INPUT = null;
export const CABINET_DOWNLOAD_OUTPUT = null;

// uploadCabinet(fileFormData)
export const CABINET_UPLOAD_CLIENT = null;
export const CABINET_UPLOAD_INPUT = null;
export const CABINET_UPLOAD_OUTPUT = null;