import type { RouteRecordStringComponent } from '@vben/types';

// import { requestClient } from '#/api/request';

/**
 * 获取用户所有菜单
 * TODO: 临时注释掉真实API调用，使用模拟数据
 */
export async function getAllMenusApi() {
  // return requestClient.get<RouteRecordStringComponent[]>('/menu/all');
  
  // 模拟菜单数据
  return Promise.resolve([
    {
      name: 'Dashboard',
      path: '/dashboard',
      component: 'dashboard/index',
      meta: {
        title: '仪表盘',
        icon: 'lucide:home',
        order: 1,
      },
    },
    {
      name: 'System',
      path: '/system',
      meta: {
        title: '系统管理',
        icon: 'lucide:settings',
        order: 2,
      },
      children: [
        {
          name: 'UserManagement',
          path: '/system/user',
          component: 'system/user/index',
          meta: {
            title: '用户管理',
            icon: 'lucide:users',
            order: 1,
          },
        },
      ],
    },
  ] as RouteRecordStringComponent[]);
}
