const list = [
  {
    'id': '11010100102',
    'lat': '',
    'level': 5,
    'levelName': '社区',
    'lng': '',
    'name': '测试社区3',
    'num': 1,
    'pid': '110101001',
    'pids': '[0],[110000],[110100],[110101],[110101001],',
    'simplename': '测试社区2'
  }
]
export default [
  // mock get all routes form server
  {
    url: '/area/listPage',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: {
          rows: list,
          total: 2
        }
      }
    }
  },
  {
    url: '/area/list',
    type: 'get',
    response: _ => {
      return {
        code: 200,
        data: [
          {
            'id': '110000',
            'pid': '0',
            'name': '北京市',
            'level': 1,
            'pids': [0],
            'levelName': '省级',
            'simplename': '北京'
          }
        ]
      }
    }
  },
  {
    url: '/area/add',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: {}
      }
    }
  },
  {
    url: '/area/update',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: {}
      }
    }
  },
  {
    url: '/area/delete',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        data: {}
      }
    }
  }
]
