Authored by hugufei

重命名

package com.yoho.search.restapi.sapp;
package com.yoho.search.restapi.miniapp;
import com.yoho.search.common.downgrade.persional.PersionalRateLimit;
import com.yoho.search.common.utils.HttpServletRequestUtils;
import com.yoho.search.models.SearchApiResult;
import com.yoho.search.service.scene.FuzzySceneService;
import com.yoho.search.service.scene.sapp.SappFuzzySceneService;
import com.yoho.search.service.scene.miniapp.MiniappFuzzySceneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
... ... @@ -15,10 +14,10 @@ import javax.servlet.http.HttpServletRequest;
import java.util.Map;
@Controller
public class SappProductListController {
public class MiniappProductListController {
@Autowired
private SappFuzzySceneService sappFuzzySceneService;
private MiniappFuzzySceneService miniappFuzzySceneService;
/**
* 小程序模糊搜索列表
... ... @@ -26,11 +25,11 @@ public class SappProductListController {
* @return
*/
@PersionalRateLimit(isOrderUseable = true)
@RequestMapping(method = RequestMethod.GET, value = "/sapp/fuzzy/productList")
@RequestMapping(method = RequestMethod.GET, value = "/miniapp/fuzzy/productList")
@ResponseBody
public SearchApiResult sappFuzzyProductList(HttpServletRequest request) {
public SearchApiResult miniappFuzzyProductList(HttpServletRequest request) {
Map<String, String> paramMap = HttpServletRequestUtils.transParamType(request);
SearchApiResult searchApiResult = sappFuzzySceneService.productList(paramMap);
SearchApiResult searchApiResult = miniappFuzzySceneService.productList(paramMap);
return searchApiResult;
}
... ... @@ -40,11 +39,11 @@ public class SappProductListController {
* @return
*/
@PersionalRateLimit(isOrderUseable = false)
@RequestMapping(method = RequestMethod.GET, value = "/sapp/fuzzy/aggregations")
@RequestMapping(method = RequestMethod.GET, value = "/miniapp/fuzzy/aggregations")
@ResponseBody
public SearchApiResult sappFuzzyAggregations(HttpServletRequest request) {
public SearchApiResult miniappFuzzyAggregations(HttpServletRequest request) {
Map<String, String> paramMap = HttpServletRequestUtils.transParamType(request);
return sappFuzzySceneService.aggregations(paramMap);
return miniappFuzzySceneService.aggregations(paramMap);
}
}
... ...
package com.yoho.search.service.scene.sapp;
package com.yoho.search.service.scene.miniapp;
import com.alibaba.fastjson.JSONObject;
import com.yoho.search.base.utils.SearchPageIdDefine;
import com.yoho.search.common.utils.SearchApiResultUtils;
import com.yoho.search.models.SearchApiResult;
import com.yoho.search.service.base.SearchDynamicConfigService;
import com.yoho.search.service.base.SearchRequestParams;
import com.yoho.search.service.helper.SearchCommonHelper;
import com.yoho.search.service.helper.SearchKeyWordHelper;
import com.yoho.search.service.list.FuzzySceneProductListService;
import com.yoho.search.service.scene.FuzzySceneService;
import com.yoho.search.service.scene.aggregations.SceneAggregationsHelper;
import com.yoho.search.service.scene.common.AbstractSceneService;
import com.yoho.search.service.scene.common.SceneRecommendBrandsService;
import com.yoho.search.service.scene.common.SceneSelectionsService;
import com.yoho.search.service.service.ISearchRecommendService;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... ... @@ -22,14 +19,11 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
@Service
public class SappFuzzySceneService extends AbstractSceneService {
public class MiniappFuzzySceneService extends AbstractSceneService {
private static final Logger logger = LoggerFactory.getLogger(SappFuzzySceneService.class);
private static final Logger logger = LoggerFactory.getLogger(MiniappFuzzySceneService.class);
@Autowired
private SearchCommonHelper searchCommonHelper;
... ...