first commit

This commit is contained in:
zzc
2026-05-07 11:05:30 +08:00
commit 596de7b73c
96 changed files with 10688 additions and 0 deletions

45
api/auth.js Normal file
View File

@@ -0,0 +1,45 @@
import { request } from "@/utils/request.js";
export const apiLogin = async (data) => {
return request({
url: "/api/user/login",
method: "POST",
data,
});
};
export const getUserInfo = async () => {
return request({
url: "/api/user/info",
method: "GET",
});
};
export const updateUserInfo = async (body) => {
return request({
url: "/api/user/info",
method: "PUT",
data: body,
});
};
export const userOpenApp = async () => {
return request({
url: "/api/user/open-app",
method: "POST",
});
};
export const getUserAsset = async () => {
return request({
url: "/api/user/asset",
method: "GET",
});
};
export const reportPrivacy = async () => {
// return request({
// url: "/api/common/privacy/report",
// method: "POST",
// });
};