21 lines
337 B
JavaScript
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'
|
|
})
|
|
}
|