完成admin-user-get

This commit is contained in:
2025-05-12 10:45:56 +08:00
parent e5c0c354e5
commit 2dd088fdf3
6 changed files with 61 additions and 18 deletions

View File

@@ -0,0 +1,6 @@
import { User } from "@/lib/types/user";
import fetcher from "../../fetcher";
export function get(userId: string) {
return fetcher<User>(`/api/admin/user/${userId}`);
}

View File

@@ -1 +1,2 @@
export * from './list';
export * from './list';
export * from './get';