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.
|
|
|
//统一管理项目相关信息
|
|
|
|
import request from '@/utils/request'
|
|
|
|
import type { loginForm, loginResponseDate, userReponseData } from './type'
|
|
|
|
//统一管理接口
|
|
|
|
enum API {
|
|
|
|
LOGIN_URL = '/user/login',
|
|
|
|
USERINFO_URL = '/user/info',
|
|
|
|
}
|
|
|
|
//登录接口
|
|
|
|
export const reqLogin = (data: loginForm) =>
|
|
|
|
request.post<any, loginResponseDate>(API.LOGIN_URL, data)
|
|
|
|
//获取用户信息
|
|
|
|
export const reqUserInfo = () =>
|
|
|
|
request.get<any, userReponseData>(API.USERINFO_URL)
|