完成admin-user-get

This commit is contained in:
2025-05-12 10:45:56 +08:00
parent 53a0f4456b
commit 0d9ff2bfa6
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}`);
}