尚硅谷--管理系统
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.

15 lines
469 B

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