/// <summary> /// 根据角色组Id或名称,遍历关联用户 /// </summary> /// <param name="input"></param> /// <returns></returns> public Pages <List <UserInfoOutputDto> > GetUserByRoleGroup(RoleGroupInputDto input) { var data = _userinfoRepository.GetUserByRoleGroup(input.id, input.rolegroupname, input.parentid, input.pageindex, input.pagesize); return(new Pages <List <UserInfoOutputDto> >(data.items.MapperToOutPut <UserInfoOutputDto>()?.ToList(), data.count)); }
public IActionResult GetList([FromQuery] RoleGroupInputDto input) { var result = _service.GetListRoleGroup(input); return(PageResponse(result)); }
public IActionResult AddRoleGroup([FromBody] RoleGroupInputDto input) { var result = _service.AddRoleGroup(input); return(AddResponse(result)); }