From 40e702344f3d35e251bb098d1227fdea74ee8e4e Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 20 三月 2024 17:50:24 +0800
Subject: [PATCH] 11

---
 src/api/system/role.js |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/api/system/role.js b/src/api/system/role.js
index 0a4157d..6f3977e 100644
--- a/src/api/system/role.js
+++ b/src/api/system/role.js
@@ -29,8 +29,8 @@
 // 淇敼瑙掕壊
 export function updateRole(data) {
   return request({
-    url: '/system/role',
-    method: 'put',
+    url: '/system/role/edit',
+    method: 'post',
     data: data
   })
 }
@@ -39,7 +39,7 @@
 export function dataScope(data) {
   return request({
     url: '/system/role/dataScope',
-    method: 'put',
+    method: 'post',
     data: data
   })
 }
@@ -52,7 +52,7 @@
   }
   return request({
     url: '/system/role/changeStatus',
-    method: 'put',
+    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',
   })
 }
 
@@ -95,8 +95,8 @@
 // 鍙栨秷鐢ㄦ埛鎺堟潈瑙掕壊
 export function authUserCancel(data) {
   return request({
-    url: '/system/role/authUser/cancel',
-    method: 'put',
+    url: '/system/role/authUser/cancel/cancelAuthUser',
+    method: 'post',
     data: data
   })
 }
@@ -104,8 +104,8 @@
 // 鎵归噺鍙栨秷鐢ㄦ埛鎺堟潈瑙掕壊
 export function authUserCancelAll(data) {
   return request({
-    url: '/system/role/authUser/cancelAll',
-    method: 'put',
+    url: '/system/role/authUser/cancelAll/cancelAuthUserAll',
+    method: 'post',
     params: data
   })
 }
@@ -113,8 +113,8 @@
 // 鎺堟潈鐢ㄦ埛閫夋嫨
 export function authUserSelectAll(data) {
   return request({
-    url: '/system/role/authUser/selectAll',
-    method: 'put',
+    url: '/system/role/authUser/selectAll/selectAuthUserAll',
+    method: 'post',
     params: data
   })
 }
\ No newline at end of file

--
Gitblit v1.9.3