text: var datas = [
    {
      'id': 1,
      'name': 'xiyou',
      'team': 'Admin',
      'mail': 'xiyou@xiyou.edu.cn',
      'phone': '18888888888',
      'createTime': 1589955823
    }
  ]
  
  export default [
    {
      path: 'system/users',
      method: 'get',
      handle ({ params, Repeat }) {
        console.log(params)
        var result = {
          code: 200,
          msg: '获取数据成功',
          data: {
            pageCount: Math.ceil(datas.length / params.pageSize),
            pageSize: params.pageSize,
            pageIndex: params.pageIndex,
            pages: datas.slice((params.pageIndex - 1) * params.pageSize, params.pageIndex * params.pageSize)
          }
        }
        console.log(result)
        return result
      }
    },  {
      path: 'system/user',
      method: 'post',
      handle ({ body }) {
        body.id = datas.length + 1
        body.createTime = Math.round(new Date().getTime()/1000)
        datas.push(body)
        console.log(body)
        var result = {
          code: 200,
          msg: '获取数据成功',
          data: true
        }
        console.log(result)
        return result
      }
    }
  ]
  