import Layout from '@/sheep/layouts/index.vue';
import Content from '@/sheep/layouts/content.vue';

export default {
  path: '/admin',
  name: 'admin',
  component: Layout,
  meta: {
    title: '后台管理',
  },
  children: [
    {
      path: 'profile',
      name: 'admin.profile',
      component: () => import('@/app/admin/views/index/profile/index.vue'),
      meta: {
        title: '个人信息',
      },
    },
    {
      path: 'auth',
      name: 'admin.auth',
      component: Content,
      meta: {
        title: '权限设置',
      },
      children: [
        {
          path: 'admin',
          name: 'admin.auth.admin',
          component: () => import('@/app/admin/views/auth/admin/index.vue'),
          meta: {
            title: '管理员',
          },
        },
        {
          path: 'role',
          name: 'admin.auth.role',
          component: () => import('@/app/admin/views/auth/role/index.vue'),
          meta: {
            title: '管理组',
          },
        },
        {
          path: 'access',
          name: 'admin.auth.access',
          component: () => import('@/app/admin/views/auth/access/index.vue'),
          meta: {
            title: '菜单权限',
          },
        },
      ],
    },

    {
      path: 'notification',
      name: 'admin.notification',
      component: Content,
      meta: {
        title: '消息通知',
      },
      children: [],
    },
    {
      path: 'banner',
      name: 'admin.banner',
      component: () => import('@/app/admin/views/banner/index.vue'),
      meta: {
        title: '轮播图管理',
        icon: 'Picture',
      },
    },
    {
      path: 'payment',
      name: 'admin.payment',
      component: () => import('@/app/admin/views/payment/index.vue'),
      meta: {
        title: '支付配置',
        icon: 'CreditCard',
      },
    },
  ],
};
