From 3a7caf4344d5911a3ee68d232e53887d6cc2ff6b Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 15 一月 2025 15:41:25 +0800
Subject: [PATCH] 测试完成
---
src/api/system/role.js | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/api/system/role.js b/src/api/system/role.js
index f13e6f4..1df8e40 100644
--- a/src/api/system/role.js
+++ b/src/api/system/role.js
@@ -20,7 +20,7 @@
// 鏂板瑙掕壊
export function addRole(data) {
return request({
- url: '/system/role',
+ url: '/system/role/add',
method: 'post',
data: data
})
@@ -29,8 +29,8 @@
// 淇敼瑙掕壊
export function updateRole(data) {
return request({
- url: '/system/role',
- method: 'put',
+ url: '/system/role/edit',
+ method: 'post',
data: data
})
}
@@ -38,8 +38,8 @@
// 瑙掕壊鏁版嵁鏉冮檺
export function dataScope(data) {
return request({
- url: '/system/role/dataScope',
- method: 'put',
+ url: '/system/role/dataScope/edit',
+ method: 'post',
data: data
})
}
@@ -51,8 +51,8 @@
status
}
return request({
- url: '/system/role/changeStatus',
- method: 'put',
+ url: '/system/role/changeStatus/edit',
+ method: 'post',
data: data
})
}
@@ -60,8 +60,8 @@
// 鍒犻櫎瑙掕壊
export function delRole(roleId) {
return request({
- url: '/system/role/' + roleId,
- method: 'delete'
+ url: '/system/role/remove/' + roleId,
+ method: 'get'
})
}
@@ -86,8 +86,8 @@
// 鍙栨秷鐢ㄦ埛鎺堟潈瑙掕壊
export function authUserCancel(data) {
return request({
- url: '/system/role/authUser/cancel',
- method: 'put',
+ url: '/system/role/authUser/cancel/edit',
+ method: 'post',
data: data
})
}
@@ -95,8 +95,8 @@
// 鎵归噺鍙栨秷鐢ㄦ埛鎺堟潈瑙掕壊
export function authUserCancelAll(data) {
return request({
- url: '/system/role/authUser/cancelAll',
- method: 'put',
+ url: '/system/role/authUser/cancelAll/edit',
+ method: 'post',
params: data
})
}
@@ -104,8 +104,8 @@
// 鎺堟潈鐢ㄦ埛閫夋嫨
export function authUserSelectAll(data) {
return request({
- url: '/system/role/authUser/selectAll',
- method: 'put',
+ url: '/system/role/authUser/selectAll/edit',
+ method: 'post',
params: data
})
}
--
Gitblit v1.9.3