ConfigFileMockService.js 2.3 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
export const CONFIG_FILRKEY = '1'

export const RESTORY_TO_DEVICEFLAG = 0

export const DEVICEKEYLIST= ['15541005750084225','15541218965700003']

export const CONFIG_FILRKEY_LIST= ["15541016646995106"]

export const GETALL_CONFIGFILE_INPUT ={
  "result": true,
  "faultCode": 0,
  "faultCause": null,
  "returnValue": [
    {
      "configFileKey": "15541016646995106",
      "configFileName": "设备6420190401.1454.conf",
      "timestamp": "20190401.145424.699",
      "codeByMd5": "766B5CCDB3867BC84E21CB90229601CE",
      "path": "/home/python/ftpTest/config/1554100575008422520190401.1454.conf",
      "source": 1,
      "delFlag": 0,
      "description": "device:E291GD18B028"
    },
    {
      "configFileKey": "15538595943170003",
      "configFileName": "设备6320190329.1939.conf",
      "timestamp": "20190329.193954.317",
      "codeByMd5": "704882F1BA003B2FFA8D070994F9C059",
      "path": "/home/python/ftpTest/config/1548326749877000020190329.1939.conf",
      "source": 1,
      "delFlag": 0,
      "description": "device:E291GD18B005"
    }
  ]
}
export const CONFIGFILE_DOWNLOAD_INPUT = {
  "result": true,
  "faultCode": 0,
  "faultCause": null,
  "returnValue": 26
}
export const CONFIGFILE_UPLOAD_INPUT = {
  "result": true,
  "faultCode": 0,
  "faultCause": null,
  "returnValue": 26
}
export const CONFIGFILE_DELETE_INPUT ={
  "result": true,
  "faultCode": 0,
  "faultCause": null,
  "returnValue": 8
}

export const GETALL_CONFIGFILE_OUTPUT ={
  "15541016646995106":{
    "configFileKey": "15541016646995106",
    "configFileName": "设备6420190401.1454.conf",
    "timestamp": "20190401.145424.699",
    "codeByMd5": "766B5CCDB3867BC84E21CB90229601CE",
    "path": "/home/python/ftpTest/config/1554100575008422520190401.1454.conf",
    "source": 1,
    "delFlag": 0,
    "description": "device:E291GD18B028"
  },
  "15538595943170003":{
    "configFileKey": "15538595943170003",
    "configFileName": "设备6320190329.1939.conf",
    "timestamp": "20190329.193954.317",
    "codeByMd5": "704882F1BA003B2FFA8D070994F9C059",
    "path": "/home/python/ftpTest/config/1548326749877000020190329.1939.conf",
    "source": 1,
    "delFlag": 0,
    "description": "device:E291GD18B005"
  }
}
export const CONFIGFILE_UPLOAD_OUTPUT = null
export const CONFIGFILE_DELETE_OUTPUT = null
export const CONFIGFILE_DOWNLOAD_OUTPUT = null