mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-17 16:56:38 +08:00
40 lines
618 B
TypeScript
40 lines
618 B
TypeScript
import http from "@/http/config";
|
|
|
|
export const userLogin = (data) => {
|
|
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) => {
|
|
return http({
|
|
url: "/api/admin/user/loginLog",
|
|
method: "get",
|
|
params
|
|
})
|
|
}
|
|
|
|
export const captcha = () => {
|
|
return http({
|
|
url: "/api/admin/login/captcha",
|
|
method: "get",
|
|
});
|
|
};
|