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

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

/**
 * 获取用户信息
 * TODO: 临时注释掉真实API调用，使用模拟数据
 */
export async function getUserInfoApi() {
  // return requestClient.get<UserInfo>('/user/info');
  
  // 模拟用户信息数据
  return Promise.resolve({
    id: '1',
    username: 'admin',
    realName: '管理员',
    avatar: '',
    homePath: '/dashboard',
    roles: ['admin'],
    permissions: ['*'],
    desc: '系统管理员',
    token: 'mock-token',
    userId: '1',
  } as UserInfo);
}
