
const tokens = {
  admin: {
    token: 'admin-token'
  },
  editor: {
    token: 'editor-token'
  }
}

const users = {
  'admin-token': {
    roles: ['admin'],
    introduction: 'I am a super administrator',
    avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
    name: 'Super Admin'
  },
  'editor-token': {
    roles: ['editor'],
    introduction: 'I am an editor',
    avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
    name: 'Normal Editor'
  }
}

module.exports = [
  // role-lest
  {
    url: '/vue-element-admin/role/getRoles',
    type: 'get',
    response: _ => {
      return {
        code: 0,
        message: 'ok',
        data: {
          current_page: 1,
          data: [
            { id: 1, role_name: '管理猿', create_time: '2016-05-11 03:06:16', status: 0 },
            { id: 2, role_name: '运营猿', create_time: '2016-05-11 03:06:16', status: 0 },
            { id: 3, role_name: '低级管理猿', create_time: '2016-05-11 03:06:16', status: 0 }
          ],
          from: 0,
          last_page: 1,
          per_page: 10,
          to: 3,
          total: 3
        }
      }
    }
  }
]
