优化控制台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

@@ -1,4 +1,5 @@
export * as authApi from './auth/index';
export * as verificationApi from './verification/index';
export * as AdminApi from './admin/index';
export * as ResourceApi from './resource/index';
export * as ResourceApi from './resource/index';
export * as UserApi from './user/index';

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');
}