| | |
| | | using WIDESEAWCS_ISystemServices; |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_Model.Models.System; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | |
| | | namespace WIDESEAWCS_WCSServer.Controllers.System |
| | | { |
| | |
| | | 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) |
| | | { |