const list = [
  {
    'pName': '--',
    'simpleName': '203',
    'num': 1,
    'deptId': '1429999819396530178',
    'fullName': '203所',
    'pid': '0',
    'id': '1429999819396530178',
    'deptType': '03',
    'pids': '[0],',
    'version': '',
    'IPSEGMENT': '',
    'tips': '2'
  },
  {
    'pName': '--',
    'simpleName': '根组织',
    'num': 1,
    'deptId': '0',
    'fullName': '根组织',
    'pid': '-1',
    'id': '0',
    'deptType': '03',
    'pids': '',
    'version': '',
    'IPSEGMENT': '',
    'tips': ''
  }
]
module.exports = [
  // mock get all routes form server
  {
    url: 'sys/dept/list',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: {
          list: list
        }
      }
    }
  },
  {
    url: 'sys/dept/tree',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: [
          {
            'checked': true,
            'code': '',
            'id': '0',
            'name': '根组织',
            'open': false,
            'pCodes': '',
            'pid': '-1',
            'value': ''
          },
          {
            'checked': false,
            'code': '',
            'id': '1429999819396530178',
            'name': '203',
            'open': false,
            'pCodes': '',
            'pid': '0',
            'value': ''
          }
        ]
      }
    }
  },
  {
    url: 'sys/dept/add',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: {}
      }
    }
  },
  {
    url: 'sys/dept/update',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: {}
      }
    }
  },
  {
    url: 'sys/dept/delete',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: {}
      }
    }
  }
]
