Initial project commit

This commit is contained in:
2026-05-09 16:40:29 +08:00
commit 02b0259a9e
267 changed files with 54891 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { get, put, post } from "@/utils/request";
export const getMyInfo = () => get("/users/me");
export const getMyStats = () => get("/users/me/stats");
export const updateMyInfo = (data) => put("/users/me", data);
export const changePassword = (data) => post("/users/me/change-password", data);
export const getUserInfo = (userId) => get(`/users/${userId}`);
export const getUserSpots = (userId, params) =>
get("/spots", { creator_id: userId, ...params });