From 4e6c841dd09baff7fafb0e21fec36ee7faf61588 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 09 九月 2024 15:01:41 +0800 Subject: [PATCH] 测试完成 --- src/api/system/user.js | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/api/system/user.js b/src/api/system/user.js index d1f05a8..6bb7965 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' }) } @@ -21,7 +21,7 @@ // 鏂板鐢ㄦ埛 export function addUser(data) { return request({ - url: '/system/user', + url: '/system/user/add', method: 'post', data: data }) @@ -30,8 +30,8 @@ // 淇敼鐢ㄦ埛 export function updateUser(data) { return request({ - url: '/system/user', - method: 'put', + url: '/system/user/edit', + method: 'post', data: data }) } @@ -39,8 +39,8 @@ // 鍒犻櫎鐢ㄦ埛 export function delUser(userId) { return request({ - url: '/system/user/' + userId, - method: 'delete' + url: '/system/user/remove/' + userId, + method: 'get' }) } @@ -52,7 +52,7 @@ } return request({ url: '/system/user/resetPwd', - method: 'put', + method: 'post', data: data }) } @@ -64,8 +64,8 @@ status } return request({ - url: '/system/user/changeStatus', - method: 'put', + url: '/system/user/changeStatus/edit', + method: 'post', data: data }) } @@ -81,8 +81,8 @@ // 淇敼鐢ㄦ埛涓汉淇℃伅 export function updateUserProfile(data) { return request({ - url: '/system/user/profile', - method: 'put', + url: '/system/user/profile/edit', + method: 'post', data: data }) } @@ -95,7 +95,7 @@ } return request({ url: '/system/user/profile/updatePwd', - method: 'put', + method: 'post', params: data }) } @@ -120,8 +120,8 @@ // 淇濆瓨鎺堟潈瑙掕壊 export function updateAuthRole(data) { return request({ - url: '/system/user/authRole', - method: 'put', + url: '/system/user/authRole/edit', + method: 'post', params: data }) } -- Gitblit v1.9.3