From eb62444060a1867ffea6f6c676c8ca55e620f4b6 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期二, 02 九月 2025 14:50:08 +0800 Subject: [PATCH] 启动页样式修改 --- src/api/system/user.js | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 56 insertions(+), 0 deletions(-) diff --git a/src/api/system/user.js b/src/api/system/user.js new file mode 100644 index 0000000..60f1913 --- /dev/null +++ b/src/api/system/user.js @@ -0,0 +1,56 @@ +import upload from '@/utils/upload' +import request from '@/utils/request' + +// 鐢ㄦ埛瀵嗙爜閲嶇疆 +export function updateUserPwd(oldPassword, newPassword) { + const data = { + oldPassword, + newPassword + } + return request({ + url: '/system/user/profile/updatePwd', + method: 'put', + params: data + }) +} + +// 鏌ヨ鐢ㄦ埛涓汉淇℃伅 +export function getUserProfile() { + return request({ + url: '/system/user/profile', + method: 'get' + }) +} + +// 淇敼鐢ㄦ埛涓汉淇℃伅 +export function updateUserProfile(data) { + return request({ + url: '/system/user/profile', + method: 'put', + data: data + }) +} + +// 鐢ㄦ埛澶村儚涓婁紶 +export function uploadAvatar(data) { + return request({ + url: '/system/user/profile/avatar', + method: 'post', + headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + data: data + }) +} +// 鏌ヨ鐢ㄦ埛鍒楄〃 +export function userListNoPage() { + return request({ + url: '/system/user/userListNoPage', + method: 'get' + }) +} +// 鏌ヨ鐢ㄦ埛鍒楄〃 +export function userListNoPageByTenantId() { + return request({ + url: '/system/user/userListNoPageByTenantId', + method: 'get' + }) +} \ No newline at end of file -- Gitblit v1.9.3