From 3323c96f78bb09b1b2d435d863a593c9a099c269 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期一, 22 四月 2024 15:22:04 +0800
Subject: [PATCH] Merge branch 'master' of http://116.62.18.175:6699/r/~yxh/opo-web
---
src/api/system/user.js | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/api/system/user.js b/src/api/system/user.js
index 1965476..c012a1c 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
})
}
@@ -137,8 +137,8 @@
// 淇濆瓨鎺堟潈瑙掕壊
export function updateAuthRole(data) {
return request({
- url: '/system/user/authRole',
- method: 'put',
+ url: '/system/user/authRole/insertAuthRole',
+ method: 'post',
params: data
})
}
--
Gitblit v1.9.3