You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
614 B
19 lines
614 B
5 months ago
|
//统一管理项目相关信息
|
||
|
import request from "@/utils/request";
|
||
|
import type {
|
||
|
loginForm,
|
||
|
loginResponseDate,
|
||
|
userReponseData,
|
||
|
} from './type'
|
||
|
//统一管理接口
|
||
|
enum API {
|
||
|
LOGIN_URL = '/user/login',
|
||
|
USERINFO_URL = '/user/info',
|
||
|
// LOGOUT_URL = '/admin/acl/index/logout',
|
||
|
}
|
||
|
//登录接口
|
||
|
export const reqLogin = (data: loginForm) => request.post<any,loginResponseDate>(API.LOGIN_URL, data)
|
||
|
//获取用户信息
|
||
|
export const reqUserInfo = () =>request.get<any,userReponseData>(API.USERINFO_URL)
|
||
|
//退出登录
|
||
|
// export const reqLogout = () => request.post<any, any>(API.LOGOUT_URL)
|