From a3b1d7bfe497ca5ece2a51eb15a5534a98b33dcb Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期一, 16 六月 2025 17:28:41 +0800
Subject: [PATCH] 1

---
 项目代码/后端/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_RoleController.cs |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/\345\220\216\347\253\257/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_RoleController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/\345\220\216\347\253\257/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_RoleController.cs"
index 711558d..0723645 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/\345\220\216\347\253\257/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_RoleController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/\345\220\216\347\253\257/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_RoleController.cs"
@@ -8,6 +8,7 @@
 using WIDESEAWCS_ISystemServices;
 using WIDESEAWCS_Model.Models;
 using WIDESEAWCS_Model.Models.System;
+using Microsoft.AspNetCore.Authorization;
 
 namespace WIDESEAWCS_WCSServer.Controllers.System
 {
@@ -55,6 +56,13 @@
             return Json(Service.GetUserTreePermission(roleId));
         }
 
+        [HttpPost, Route("GetUserTreeUserRole"), AllowAnonymous]
+        public IActionResult GetUserTreeUserRole(string url)
+        {
+
+            return Json(Service.GetUserTreeUserRole(url));
+        }
+
         [HttpPost, Route("savePermission")]
         public IActionResult SavePermission([FromBody] List<UserPermissionDTO> userPermissions, int roleId)
         {

--
Gitblit v1.9.3