From b9c76ce85e533250cd36de670146530f970859e7 Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期五, 01 八月 2025 11:29:49 +0800 Subject: [PATCH] 修改伸缩杆接口 --- 项目代码/后端/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