import { http } from "@/http/http"; import type { CurrentUserResponseData } from './types'; /** 获取当前登录用户详情 */ export async function getCurrentUserApi() { return await http.get("users/me"); } export async function mpCodeToOpenId(code: string) { return await http.get("wx/mpCodeToOpenId", { code }); }