From 114ffafeeb20ef7066cb2e2882bb58b96f791ab5 Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期一, 20 十月 2025 11:33:11 +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