From 920390be74afb8a585fa0fc2a1359ecb52b1c5af Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期五, 14 十一月 2025 14:37:21 +0800
Subject: [PATCH] 优化后台前端视频流问题

---
 项目代码/后端/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Sys_RoleController.cs |   14 ++++++++++++++
 1 files changed, 14 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..ee8e782 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,19 @@
             return Json(Service.GetUserTreePermission(roleId));
         }
 
+
+        /// <summary>
+        /// 妫�鏌ョ敤鎴锋槸鍚︽湁鏉冮檺鏌ョ湅璇ラ〉闈�
+        /// </summary>
+        /// <param name="url"></param>
+        /// <returns></returns>
+        [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