public IActionResult AddRoleInfo([FromBody] RoleInfoInputDto input) { var result = _service.AddRoleInfo(input); return(AddResponse(result)); }
public IActionResult GetRoleGroupByRole([FromQuery] RoleInfoInputDto input) { var result = _service.GetRoleGroupByRole(input); return(PageResponse(result)); }
/// <summary> /// 根据权限Id或名称,遍历关联角色组 /// </summary> /// <param name="input"></param> /// <returns></returns> public Pages <List <RoleGroupOutputDto> > GetRoleGroupByRole(RoleInfoInputDto input) { var data = _roleGroupRepository.GetRoleGroupByRole(input.id, input.rolename, input.parentid, input.pageindex, input.pagesize); return(new Pages <List <RoleGroupOutputDto> >(data.items.MapperToOutPut <RoleGroupOutputDto>()?.ToList(), data.count)); }