| | |
| | | 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)); |
| | | } |
| | | |
| | | |
| | | /// <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) |
| | | { |