This commit is contained in:
2025-12-12 01:44:41 +08:00
parent 21abcaff53
commit 2f1d732a36
46 changed files with 7756 additions and 484 deletions

33
api/user.js Normal file
View File

@@ -0,0 +1,33 @@
/**
* 用户相关API接口
*/
import request from '@/utils/request.js'
export default {
/**
* 获取用户信息
* @returns {Promise}
*/
getUserInfo() {
return request.get('/blade-system/user/info')
},
/**
* 修改密码
* @param {Object} data { oldPassword, newPassword, confirmPassword }
* @returns {Promise}
*/
updatePassword(data) {
return request.post('/blade-system/user/update-password', data)
},
/**
* 修改用户基本信息
* @param {Object} data 用户信息
* @returns {Promise}
*/
updateUserInfo(data) {
return request.post('/blade-system/user/update-info', data)
}
}