const data = [
  {
    id: 1,
    datasetName: '金融风控_1',
    type: 1,
    status: 1,
    amount: 10,
    createTime: 1593321093655,
    updateTime: 1593321093655
  },
  {
    id: 2,
    datasetName: '金融风控_2',
    type: 1,
    status: 2,
    amount: 0,
    createTime: 1593321093655,
    updateTime: 1593321093655
  }
]
export default [
  // 获取数据集列表
  {
    url: '/cc/linque/getDatasetList',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        responseTime: 1593321093655,
        data: {
          pageNum: 1,
          pageSize: 10,
          totalSize: data.length,
          records: data
        }
      }
    }
  },
  // 获取数据集详情
  {
    url: '/cc/linque/getDatasetDetail',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: 'success',
        responseTime: 1593321093655,
        data: {
          pageNum: 1,
          pageSize: 10,
          totalSize: 1,
          records: [
            {
              id: 1,
              name: 'Tom Hanks',
              birthday: '1968-06-9',
              gender: 1,
              education: 1,
              telephone: '18790908766',
              address: 'St1. Ca. USA'
            }
          ]
        }
      }
    }
  },
  // 创建数据集
  {
    url: '/cc/linque/addDataset',
    type: 'post',
    response: (req, res) => {
      data.push({
        id: 3,
        datasetName: req.body.datasetName,
        type: 1,
        status: 2,
        amount: 0,
        createTime: 1593321093655,
        updateTime: 1593321093655
      })
      return {
        code: 200,
        message: 'success',
        responseTime: 1593321093655,
        data: {}
      }
    }
  }
]
