public async Task <string> QueryPagedAsync(Guid id, [FromQuery] ProductAttributeParam param) { param.ProductAttributeCategoryId = id; var filter = param.SearchLambda <ProductAttribute, ProductAttributeParam>(); var result = await _productAttributeRepository.QueryPagedAsync(param.PageNum, param.PageSize, null, filter); var pageData = new PagedDto <ProductAttribute> { Code = 200, Msg = "获取数据成功", Total = result.TotalResults, PageSize = param.PageSize, Data = result.Items.ToList() }; var json = pageData.ToString(); return(json); }