优化控制台user

This commit is contained in:
2025-05-13 11:35:03 +08:00
parent 96e8d0e090
commit b6d9a518e8
5 changed files with 86 additions and 57 deletions

View File

@@ -0,0 +1 @@
export * from './me';

View File

@@ -0,0 +1,6 @@
import { User } from "@/lib/types/user";
import fetcher from "../fetcher";
export async function me() {
return fetcher<User>('/api/user/me');
}