예제 #1
0
        GetTiresByFilter(SearchProductRequest filter, string[] filterPropertys)
        {
            try
            {
                using (var searchClient = new ProductSearchClient())
                {
                    var searchResult = await searchClient.QueryTireListFilterValuesAsync(filter, filterPropertys.ToList());

                    searchResult.ThrowIfException(true);
                    return(searchResult?.Result);
                }
            }
            catch (Exception ex)
            {
                _logger.Error($"查询轮胎列表失败 {JsonConvert.SerializeObject(filter)}", ex);
                return(null);
            }
        }