...
|
...
|
@@ -10,26 +10,26 @@ import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import com.yoho.search.service.servicenew.INewPromotionService;
|
|
|
import com.yoho.search.service.servicenew.IAggProductListService;
|
|
|
import com.yoho.search.service.utils.HttpServletRequestUtils;
|
|
|
import com.yoho.search.service.vo.SearchApiResult;
|
|
|
|
|
|
@Controller
|
|
|
public class NewPromotionController {
|
|
|
public class AggProductListController {
|
|
|
|
|
|
@Autowired
|
|
|
private INewPromotionService newPromotionService;
|
|
|
private IAggProductListService aggProductListService;
|
|
|
|
|
|
/**
|
|
|
* 聚合商品列表
|
|
|
* 聚合商品列表[按品牌或品类聚合]
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(method = RequestMethod.GET, value = "/newpromotion/aggProductList")
|
|
|
@RequestMapping(method = RequestMethod.GET, value = "/productindex/aggProductList")
|
|
|
@ResponseBody
|
|
|
public SearchApiResult productList(HttpServletRequest request) {
|
|
|
public SearchApiResult aggProductList(HttpServletRequest request) {
|
|
|
Map<String, String> paramMap = HttpServletRequestUtils.transParamType(request);
|
|
|
return newPromotionService.aggProductList(paramMap);
|
|
|
return aggProductListService.aggProductList(paramMap);
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|