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 | 36 ++++++++++++++++++++++--------------
1 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/src/api/system/user.js b/src/api/system/user.js
index f2f76ef..87aaf6c 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'
})
}
@@ -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
})
}
@@ -121,7 +121,7 @@
export function updateAuthRole(data) {
return request({
url: '/system/user/authRole',
- method: 'put',
+ 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