From 74907784c7005b7307b690d010ce6f8292e0dc9b Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期五, 22 八月 2025 09:36:56 +0800
Subject: [PATCH] 修改单机版bug
---
项目代码/后端/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