From 96f8501cc973232b340e36a61992ec1ad47e4a31 Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期六, 12 七月 2025 11:10:34 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/MeiRuiAn/JiAnLiKu

---
 WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_RoleController.cs |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_RoleController.cs b/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_RoleController.cs
index bf6c025..fed8755 100644
--- a/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_RoleController.cs
+++ b/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_RoleController.cs
@@ -9,7 +9,7 @@
 using WIDESEA_Model.Models;
 using WIDESEA_Model.Models.System;
 
-namespace WIDESEA_WMSServer.Controllers.System
+namespace WIDESEA_WMSServer.Controllers
 {
     [Route("api/Sys_Role")]
     [ApiController]
@@ -60,5 +60,22 @@
         {
             return Json(Service.SavePermission(userPermissions, roleId));
         }
+
+        [HttpPost, Route("getCurrentTreePermissionPDA")]
+        public IActionResult GetCurrentTreePermissionPDA()
+        {
+            return Json(Service.GetCurrentTreePermissionPDA());
+        }
+        [HttpPost, Route("getUserTreePermissionPDA")]
+        public IActionResult GetUserTreePermissionPDA(int roleId)
+        {
+            return Json(Service.GetUserTreePermissionPDA(roleId));
+        }
+
+        [HttpPost, Route("SavePermissionPDA")]
+        public IActionResult SavePermissionPDA([FromBody] List<UserPermissionDTO> userPermissions, int roleId)
+        {
+            return Json(Service.SavePermissionPDA(userPermissions, roleId));
+        }
     }
 }

--
Gitblit v1.9.3