From a346cfbcb03a303dca252d910d2181f00e7adc20 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 03 九月 2024 10:39:10 +0800
Subject: [PATCH] 测试完成
---
src/api/system/user.js | 34 +++++++++++++++++-----------------
1 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/src/api/system/user.js b/src/api/system/user.js
index f2f76ef..1f33108 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) {
@@ -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'
})
}
@@ -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