From 2c4c416bf7950c72ffa2543a218e4fd993ee2af2 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 12 九月 2024 12:04:32 +0800 Subject: [PATCH] 测试完成 --- src/api/system/user.js | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/api/system/user.js b/src/api/system/user.js index eb6f277..87aaf6c 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -13,7 +13,7 @@ // 鏌ヨ鐢ㄦ埛璇︾粏 export function getUser(userId) { return request({ - url: '/system/user/' + parseStrEmpty(userId), + url: '/system/user/getInfo/' + parseStrEmpty(userId), method: 'get' }) } @@ -51,7 +51,7 @@ password } return request({ - url: '/system/user/resetPwd/edit', + url: '/system/user/resetPwd', method: 'post', data: data }) @@ -94,7 +94,7 @@ newPassword } return request({ - url: '/system/user/profile/updatePwd/edit', + url: '/system/user/profile/updatePwd', method: 'post', params: data }) @@ -120,7 +120,7 @@ // 淇濆瓨鎺堟潈瑙掕壊 export function updateAuthRole(data) { return request({ - url: '/system/user/authRole/edit', + url: '/system/user/authRole', method: 'post', params: data }) @@ -133,3 +133,11 @@ method: 'get' }) } +// 鏂板绉戝/鐥呭尯 +export function adduserdept(data) { + return request({ + url: '/smartor/userdept/add', + method: 'post', + params: data + }) +} -- Gitblit v1.9.3