bonus-material-app/src/services/index.js

23 lines
368 B
JavaScript

import { http } from '@/utils/http'
/**
* 登录接口
*/
export const appLoginAPI = (data) => {
console.log('999')
return http({
method: 'POST',
url: '/auth/login',
data,
})
}
/**
* 获取用户信息
*/
export const getUserInfoAPI = () => {
return http({
method: 'GET',
url: '/system/user/getInfo',
})
}