tft-fe/src/api/user.js
2023-01-03 09:33:30 +08:00

21 lines
337 B
JavaScript

import request from './request'
export function login(data) {
const dto = Object.assign(data, {
appType: 1,
userType: 1
})
return request({
url: '/passport/login',
method: 'post',
data: dto
})
}
export function getUserInfo() {
return request({
url: '/passport/getLoginUser',
method: 'post'
})
}