2025-10-30 16:54:27 +08:00
|
|
|
import { http } from "@/http/http";
|
|
|
|
|
import type { CurrentUserResponseData } from './types';
|
|
|
|
|
|
|
|
|
|
/** 获取当前登录用户详情 */
|
|
|
|
|
export async function getCurrentUserApi() {
|
2025-10-31 17:44:08 +08:00
|
|
|
return await http.get<CurrentUserResponseData>("users/me");
|
2025-11-04 09:15:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function mpCodeToOpenId(code: string) {
|
|
|
|
|
return await http.get<string>("wx/mpCodeToOpenId", { code });
|
2025-10-30 16:54:27 +08:00
|
|
|
}
|