| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.AspNetCore.Routing; |
| | | using WIDESEA_DTO.System; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_Core.BaseRepository; |
| | | using WIDESEA_DTO.System; |
| | | using WIDESEA_ISystemService; |
| | | using WIDESEA_Model.Models; |
| | | using WIDESEA_Model.Models.System; |
| | |
| | | public class Sys_RoleController : ApiBaseController<ISys_RoleService, Sys_Role> |
| | | { |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | |
| | | public Sys_RoleController(ISys_RoleService service, IHttpContextAccessor httpContextAccessor) : base(service) |
| | | { |
| | | _httpContextAccessor = httpContextAccessor; |
| | |
| | | { |
| | | return Json(Service.GetCurrentTreePermissionPDA()); |
| | | } |
| | | |
| | | [HttpPost, Route("getUserTreePermissionPDA")] |
| | | public IActionResult GetUserTreePermissionPDA(int roleId) |
| | | { |
| | |
| | | return Json(Service.SavePermissionPDA(userPermissions, roleId)); |
| | | } |
| | | } |
| | | } |
| | | } |