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

23 lines
368 B
JavaScript
Raw Normal View History

2024-11-18 09:05:38 +08:00
import { http } from '@/utils/http'
/**
* 登录接口
*/
export const appLoginAPI = (data) => {
2024-11-20 10:18:19 +08:00
console.log('999')
2024-11-18 09:05:38 +08:00
return http({
method: 'POST',
2024-11-18 18:28:06 +08:00
url: '/auth/login',
2024-11-18 09:05:38 +08:00
data,
})
}
2024-11-18 18:28:06 +08:00
/**
* 获取用户信息
*/
export const getUserInfoAPI = () => {
return http({
method: 'GET',
url: '/system/user/getInfo',
})
}