fix conflicts

This commit is contained in:
RockYang
2024-03-12 18:03:24 +08:00
239 changed files with 602 additions and 452 deletions

View File

@@ -0,0 +1,42 @@
import http from "@/http/config";
export const userLogin = (data: {
username: string;
password: string;
}) => {
return http({
url: "/api/admin/login",
method: "post",
data,
});
};
export const userLogout = () => {
return http({
url: "/api/admin/logout",
method: "get",
});
};
export const getSession = () => {
return http({
url: "/api/admin/session",
method: "get",
});
};
export const loginLog = (params?: Record<string, unknown>) => {
return http({
url: "/api/admin/user/loginLog",
method: "get",
params
})
}
export const captcha = () => {
return http({
url: "/api/admin/login/captcha",
method: "get",
});
};