feat: 优化项目目录结构

This commit is contained in:
2025-12-12 17:25:26 +08:00
parent ae627d0496
commit b89f83291e
235 changed files with 0 additions and 0 deletions

View File

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

View File

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

View File

@@ -0,0 +1,10 @@
import fetcher from "../fetcher";
export async function updatePassword(password: string) {
return fetcher(`/api/user/password`, {
method: 'PUT',
body: JSON.stringify({
password: password,
}),
})
}