From f43b7df8400f4fcffc9f19dca0888d61e2b33d5f Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期三, 12 三月 2025 18:41:52 +0800
Subject: [PATCH] WMS系统添加PDA权限,PDA程序

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_RoleController.cs |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_RoleController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_RoleController.cs"
index cd3cd9f..6d9fade 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_RoleController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_RoleController.cs"
@@ -1,15 +1,15 @@
 锘縰sing Microsoft.AspNetCore.Http;
 using Microsoft.AspNetCore.Mvc;
 using Microsoft.AspNetCore.Routing;
+using WIDESEA_DTO.System;
 using WIDESEA_Core;
 using WIDESEA_Core.BaseController;
 using WIDESEA_Core.BaseRepository;
-using WIDESEA_DTO.System;
-using WIDESEA_IServices;
+using WIDESEA_ISystemService;
 using WIDESEA_Model.Models;
 using WIDESEA_Model.Models.System;
 
-namespace WIDESEA_WMSServer.Controllers.System
+namespace WIDESEA_WMSServer.Controllers
 {
     [Route("api/Sys_Role")]
     [ApiController]
@@ -55,10 +55,27 @@
             return Json(Service.GetUserTreePermission(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("savePermission")]
         public IActionResult SavePermission([FromBody] List<UserPermissionDTO> userPermissions, int roleId)
         {
             return Json(Service.SavePermission(userPermissions, roleId));
         }
+
+        [HttpPost, Route("SavePermissionPDA")]
+        public IActionResult SavePermissionPDA([FromBody] List<UserPermissionDTO> userPermissions, int roleId)
+        {
+            return Json(Service.SavePermissionPDA(userPermissions, roleId));
+        }
     }
 }

--
Gitblit v1.9.3