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.

40 lines
776 B

2 years ago
import request from '@/utils/request'
import qs from 'qs'
//登录
export function login(data) {
return request({
url: '/v1/sysuser/login',
method: 'post',
data: data,
})
}
// 用户注册
export function registUser(data) {
return request({
url: 'v1/sysuser/register',
method: 'post',
data,
})
}
2 years ago
// 获取
2 years ago
export function getVerificationCode(data) {
return request({
url: '/system/user/getVerificationCode',
method: 'get',
params: data
})
}
// 根据token值获取登录后的用户信息
export function loginDetails(data) {
return request({
url: '/v1/sysuser/loginDetails',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}