export default [
  // 组织树列表
  {
    url: '/cc/department/listTree',
    type: 'get',
    response: _ => {
      return {
        "code": 200,
        "message": "success",
        "responseTime": 1593322102878,
        "data": [
          {
            "id": "t_0",
            "departmentName": "管理平台",
            "parentId": "0",
            "tenantId": 0,
            "category": "0",
            "orderNum": 0,
            "userCount": 0,
            "children": []
          },
          {
            "id": "t_2",
            "departmentName": "英思唯网络货运平台",
            "parentId": "0",
            "tenantId": 2,
            "category": "0",
            "principal": "黄朝斌",
            "orderNum": 0,
            "userCount": 0,
            "children": [
              {
                "id": "1",
                "departmentName": "运营部",
                "parentId": "t_2",
                "tenantId": 2,
                "orderNum": 1,
                "userCount": 0,
                "children": []
              }
            ]
          }
        ]
      }
    }
  },
  // 新增组织
  {
    url: '/cc/department/add',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        responseTime: 1593321093655,
        data: {}
      }
    }
  },
  // 删除组织
  {
    url: '/cc/department/delete',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        responseTime: 1593321093655,
        data: {}
      }
    }
  },
  // 组织详情
  {
    url: '/cc/department/info',
    type: 'get',
    response: _ => {
      return {
        "code": 200,
        "message": "success",
        "responseTime": 1593322411649,
        "data": {
          "id": "1",
          "departmentName": "运营部",
          "parentId": "t_2",
          "tenantId": 2,
          "orderNum": 1
        }
      }
    }
  },
  // 修改组织信息
  {
    url: '/cc/department/update',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        responseTime: 1593321093655,
        data: {}
      }
    }
  },
  // 查询可修改上级组织
  {
    url: '/cc/department/chooseList',
    type: 'get',
    response: _ => {
      return {
        "code": 200,
        "message": "success",
        "responseTime": 1593322411305,
        "data": [
          {
            "id": "t_2",
            "departmentName": "英思唯网络货运平台"
          }
        ]
      }
    }
  }
]
