import { DEFAULT_LAYOUT } from '../base';
import type { AppRouteRecordRaw } from '../types';

const MERCHANT_USER_MANAGEMENT: AppRouteRecordRaw = {
  path: '/userCenter',
  name: 'userCenter',
  component: DEFAULT_LAYOUT,
  meta: {
    showInMenu: false,
    locale: '用户管理',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 0
  },
  children: [
    {
      path: 'management',
      name: 'Management',
      component: () => import('@/views/user-center/management/index.vue'),
      meta: {
        locale: '用户管理',
        requiresAuth: true,
        roles: ['*']
      }
    }
  ]
};

export default MERCHANT_USER_MANAGEMENT;
