优化控制台user

This commit is contained in:
2025-05-13 11:35:03 +08:00
parent 7d34807edb
commit d1a9292443
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');
}