Files
my-bigScreen/screen-vue/src/api/user.js
2026-03-11 10:32:51 +08:00

56 lines
753 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request';
/**
* 登录接口
*/
export function login(data) {
return request({
url: '/userLogin',
method: 'post',
data
})
}
/**
* 退出登录
*/
export function logout() {
return request({
url: '/userLogout',
method: 'post'
})
}
/**
* 获取当前用户信息需要token验证
*/
export function getUserInfo() {
return request({
url: '/userInfo',
method: 'get'
})
}
/**
* 修改密码
*/
export function updatePasswd(params) {
return request({
url: '/editPasswd',
method: 'post',
params: params
})
}
/**
* 初始化密码
*/
export function initPasswd(params) {
return request({
url: '/initPasswd',
method: 'post',
params: params
})
}