...
|
...
|
@@ -4,12 +4,19 @@ import java.util.Map; |
|
|
import java.util.concurrent.ExecutorService;
|
|
|
import java.util.concurrent.Executors;
|
|
|
|
|
|
import com.yoho.search.service.utils.SearchRequestParams;
|
|
|
import com.yoho.search.service.vo.SearchApiResult;
|
|
|
|
|
|
public abstract class AbstractSceneService {
|
|
|
|
|
|
|
|
|
protected static ExecutorService executorService = Executors.newFixedThreadPool(500);
|
|
|
|
|
|
protected void addParamsToParamMap(Map<String, String> paramMap) {
|
|
|
paramMap.put(SearchRequestParams.PARAM_SEARCH_PAGEID, this.pageId());
|
|
|
paramMap.put(SearchRequestParams.PARAM_SEARCH_GLOBAL_FILTER_BRAND, "Y");// 屏蔽参数
|
|
|
paramMap.put("aggWithParamBrand", "Y");// 聚合品牌只取参数中的brand聚合
|
|
|
}
|
|
|
|
|
|
public abstract String pageId();
|
|
|
|
|
|
public abstract SearchApiResult productList(Map<String, String> paramMap);
|
...
|
...
|
|