/// <summary> /// 分页获取 /// </summary> /// <param name="roleElementPageRequestDto"></param> /// <returns></returns> public async Task <PageData> GetPageListAsync(RoleElementPageRequestDto roleElementPageRequestDto) { var pageData = new PageData(roleElementPageRequestDto.PageIndex, roleElementPageRequestDto.PageSize); var list = await _roleElementRespository.WherePaged(pageData, e => e.IsDelete == false, e => e.CreateDate, false); pageData.Data = list.MapToList <RoleElement, RoleElementQueryDto>().ToList(); return(pageData); }
/// <summary> /// 分页获取 /// </summary> /// <param name="input"></param> /// <returns></returns> public async Task <PageData> GetPageList(RoleElementPageRequestDto input) { input.InitRequest(); return(await _roleElementAppService.GetPageListAsync(input)); }