// 兑换码
export default {
  path: 'cdKey',
  name: '兑换码管理',
  component: () => import(/* webpackChunkName: "cdKey" */ '../../views/cdKey/index.vue'),
  redirect: '/cdKey/list',
  children: [
    {
      path: 'list',
      name: '兑换码列表',
      component: () => import(/* webpackChunkName: "cdKey" */ '../../views/cdKey/list.vue'),
      meta: {
        path: '/cdKey/list'
      }
    },
    {
      path: 'add',
      name: '新建兑换码',
      component: () => import(/* webpackChunkName: "cdKey" */ '../../views/cdKey/form.vue'),
      meta: {
        type: 'add',
        path: '/cdKey/list'
      }
    },
    {
      path: 'info/:id',
      name: '兑换码详情',
      component: () => import(/* webpackChunkName: "cdKey" */ '../../views/cdKey/form.vue'),
      meta: {
        type: 'info',
        path: '/cdKey/list'
      }
    },
    {
      path: 'edit/:id',
      name: '编辑兑换码',
      component: () => import(/* webpackChunkName: "cdKey" */ '../../views/cdKey/form.vue'),
      meta: {
        type: 'edit',
        path: '/cdKey/list'
      }
    },
    {
      path: 'record/list',
      name: '兑换记录',
      component: () => import(/* webpackChunkName: "cdKey" */ '../../views/cdKey/record-list.vue')
    }
  ]
};
