import { request } from '@/http' const USE_MOCK = true export interface UserInfo { id: string name: string avatar: string mobile: string loginType: 'mobile' | 'wechat' } export function getUserInfo(): Promise { if (USE_MOCK) { return Promise.resolve({ id: 'u-001', name: '张大爷', avatar: '', mobile: '', loginType: 'mobile' }) } return request.get('/user/info') }