From a46348ad86f5df632c58bed5866a70f798b75d5e Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 12 四月 2024 17:33:37 +0800 Subject: [PATCH] 测试完成 --- src/api/system/user.js | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/api/system/user.js b/src/api/system/user.js index f2f76ef..bcc2061 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import { parseStrEmpty } from "@/utils/ruoyi"; +import { parseStrEmpty } from "@/utils/ruoyi";//澶勭悊瀛楃涓� // 鏌ヨ鐢ㄦ埛鍒楄〃 export function listUser(query) { @@ -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' }) } @@ -51,8 +51,8 @@ password } return request({ - url: '/system/user/resetPwd', - method: 'put', + url: '/system/user/resetPwd/edit', + 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 }) } @@ -94,8 +94,8 @@ newPassword } return request({ - url: '/system/user/profile/updatePwd', - method: 'put', + url: '/system/user/profile/updatePwd/edit', + 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