From 64a95255d239d7e97f7417d431cc2ddd7e63c11e Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 11 七月 2025 16:06:37 +0800
Subject: [PATCH] 11
---
src/api/system/user.js | 38 ++++++++++++++++++++++++++------------
1 files changed, 26 insertions(+), 12 deletions(-)
diff --git a/src/api/system/user.js b/src/api/system/user.js
index 37f4eb3..ab25ade 100644
--- a/src/api/system/user.js
+++ b/src/api/system/user.js
@@ -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',
})
}
@@ -61,7 +61,7 @@
}
return request({
url: '/system/user/resetPwd',
- method: 'put',
+ method: 'post',
data: data
})
}
@@ -74,7 +74,7 @@
}
return request({
url: '/system/user/changeStatus',
- method: 'put',
+ method: 'post',
data: data
})
}
@@ -90,8 +90,8 @@
// 淇敼鐢ㄦ埛涓汉淇℃伅
export function updateUserProfile(data) {
return request({
- url: '/system/user/profile',
- method: 'put',
+ url: '/system/user/profile/updateProfile',
+ method: 'post',
data: data
})
}
@@ -104,8 +104,8 @@
}
return request({
url: '/system/user/profile/updatePwd',
- method: 'put',
- params: data
+ method: 'post',
+ data: data
})
}
@@ -133,12 +133,26 @@
method: 'get'
})
}
+// 鏌ヨ鎺堟潈瑙掕壊
+export function handleunlock(userName ) {
+ return request({
+ url: '/system/user/cleanErrorNums/' + userName ,
+ method: 'get',
+ })
+}
// 淇濆瓨鎺堟潈瑙掕壊
export function updateAuthRole(data) {
return request({
- url: '/system/user/authRole',
- method: 'put',
+ url: '/system/user/authRole/insertAuthRole',
+ method: 'post',
params: data
})
}
+// 鏌ヨ鎺堟潈瑙掕壊
+export function getdepartment(userName ) {
+ return request({
+ url: '/system/dingtalk/deptidList/' + 1 ,
+ method: 'get',
+ })
+}
--
Gitblit v1.9.3