| | |
| | | 锘縰sing Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.AspNetCore.Routing; |
| | | using WIDESEA_DTO.System; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_Core.BaseRepository; |
| | | using WIDESEA_DTO.System; |
| | | using WIDESEA_IServices; |
| | | using WIDESEA_ISystemService; |
| | | using WIDESEA_Model.Models; |
| | | using WIDESEA_Model.Models.System; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers.System |
| | | namespace WIDESEA_WMSServer.Controllers |
| | | { |
| | | [Route("api/Sys_Role")] |
| | | [ApiController] |
| | |
| | | return Json(Service.GetUserTreePermission(roleId)); |
| | | } |
| | | |
| | | [HttpPost, Route("getCurrentTreePermissionPDA")] |
| | | public IActionResult GetCurrentTreePermissionPDA() |
| | | { |
| | | return Json(Service.GetCurrentTreePermissionPDA()); |
| | | } |
| | | [HttpPost, Route("getUserTreePermissionPDA")] |
| | | public IActionResult GetUserTreePermissionPDA(int roleId) |
| | | { |
| | | return Json(Service.GetUserTreePermissionPDA(roleId)); |
| | | } |
| | | |
| | | [HttpPost, Route("savePermission")] |
| | | public IActionResult SavePermission([FromBody] List<UserPermissionDTO> userPermissions, int roleId) |
| | | { |
| | | return Json(Service.SavePermission(userPermissions, roleId)); |
| | | } |
| | | |
| | | [HttpPost, Route("SavePermissionPDA")] |
| | | public IActionResult SavePermissionPDA([FromBody] List<UserPermissionDTO> userPermissions, int roleId) |
| | | { |
| | | return Json(Service.SavePermissionPDA(userPermissions, roleId)); |
| | | } |
| | | } |
| | | } |