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: 'adminlog',
          name: 'admin.auth.adminlog',
          component: () => import('@/app/admin/views/auth/adminLog/index.vue'),
          meta: {
            title: '操作记录',
          },
        },
      ],
    },
    {
      path: 'config',
      name: 'admin.config',
      component: Content,
      meta: {
        title: '系统设置',
      },
      children: [
        {
          path: 'basic',
          name: 'admin.config.basic',
          component: () => import('@/app/admin/views/config/basic.vue'),
          meta: {
            title: '系统信息',
          },
        },
        {
          path: 'easysms',
          name: 'admin.config.easysms',
          component: () => import('@/app/admin/views/config/easysms.vue'),
          meta: {
            title: '短信配置',
          },
        },
      ],
    },
    {
      path: 'notification',
      name: 'admin.notification',
      component: Content,
      meta: {
        title: '消息通知',
      },
      children: [
        {
          path: 'config',
          name: 'admin.notification.config',
          component: () => import('@/app/admin/views/notification/config/index.vue'),
          meta: {
            title: '消息配置',
          },
        },
      ],
    },
  ],
};
