LinkServiceMock.js 3.61 KB
Newer Older
YazhouChen's avatar
YazhouChen committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
// getAllSubnetCollection()
export const LINK_GETALL_INPUT = {
  "result": true,
  "faultCode": 0,
  "faultCause": null,
  "returnValue": [
    {
      "linkKey": "15560112124290008",
      "linkName": "linktest111",
      "startDeviceKey": "15538600012370472",
      "startPortName": "12",
      "endDeviceKey": "15538553088180463",
      "endPortName": "13",
      "linkStatus": 0,
      "linkType": 0,
      "delFlag": 0,
      "modifyTime": "20190423.022156.267"
    }
  ]
}
export const LINK_GETALL_OUTPUT = {
  '15560112124290008':{
    "linkKey": "15560112124290008",
    "linkName": "linktest111",
    "startDeviceKey": "15538600012370472",
    "startPortName": "12",
    "endDeviceKey": "15538553088180463",
    "endPortName": "13",
    "linkStatus": 0,
    "linkType": 0,
    "delFlag": 0,
    "modifyTime": "20190423.022156.267"
  }
}

// addSubent(subent)
export const LINK_ADD_CLIENT = {
  "linkKey": "15560112124290008",
  "linkName": "linktest111",
  "startDeviceKey": "15538600012370472",
  "startPortName": "12",
  "endDeviceKey": "15538553088180463",
  "endPortName": "13",
  "linkStatus": 0,
  "linkType": 0,
  "delFlag": 0,
  "modifyTime": "20190423.022156.267"
}
export const LINK_ADD_INPUT = {
  "result": true,
  "faultCode": 0,
  "faultCause": null,
  "returnValue": {
    "linkKey": "15560758770170019",
    "linkName": "linktest111",
    "startDeviceKey": "15538600012370472",
    "startPortName": "12",
    "endDeviceKey": "15538553088180463",
    "endPortName": "13",
    "linkStatus": 0,
    "linkType": 0,
    "delFlag": 0,
    "modifyTime": "20190423.201757.017"
  }
}
export const LINK_ADD_OUTPUT = null;

// deleteSubnets(subnetKeyList)
export const LINK_DELETE_CLIENT = [15560112124290008]
export const LINK_DELETE_INPUT = {
  "result": true,
  "faultCode": 0,
  "faultCause": null,
  "returnValue": 15
}
export const LINK_DELETE_OUTPUT = null;

// modifySubnet(subnet)
export const LINK_MODDIFY_CLIENT = {
  "linkKey": "15560112124290008",
  "linkName": "linktest111",
  "startDeviceKey": "15538600012370472",
  "startPortName": "12",
  "endDeviceKey": "15538553088180463",
  "endPortName": "13",
  "linkStatus": 0,
  "linkType": 0,
  "delFlag": 0,
  "modifyTime": "20190423.015337.467"
}
export const LINK_MODDIFY_INPUT = {
  "result": true,
  "faultCode": 0,
  "faultCause": null,
  "returnValue": {
    "type": "com.arangodb.entity.BaseDocument",
    "id": null,
    "stats": {
      "writesExecuted": 1,
      "writesIgnored": 0,
      "scannedFull": 0,
      "scannedIndex": 0,
      "filtered": 0,
      "fullCount": null,
      "executionTime": 0.0003733634948730469
    },
    "cached": false,
    "warnings": [],
    "count": null
  }
}
export const LINK_MODDIFY_OUTPUT = null;

// conditionQuerySubnet(conditionSet)
export const LINK_QUERY_CLIENT =[{"quaryAttribute":"linkName","compareSymbol":"==","compareValue":"linktest111"}]
export const LINK_QUERY_INPUT = {
  "result": true,
  "faultCode": 0,
  "faultCause": null,
  "returnValue": [
    {
      "linkKey": "15560112124290008",
      "linkName": "linktest111",
      "startDeviceKey": "15538600012370472",
      "startPortName": "12",
      "endDeviceKey": "15538553088180463",
      "endPortName": "13",
      "linkStatus": 0,
      "linkType": 0,
      "delFlag": 0,
      "modifyTime": "20190423.022156.267"
    }
  ]
}
export const LINK_QUERY_OUTPUT = {
  '15560112124290008':{
    "linkKey": "15560112124290008",
    "linkName": "linktest111",
    "startDeviceKey": "15538600012370472",
    "startPortName": "12",
    "endDeviceKey": "15538553088180463",
    "endPortName": "13",
    "linkStatus": 0,
    "linkType": 0,
    "delFlag": 0,
    "modifyTime": "20190423.022156.267"
  }
}