Authored by hugufei

添加/web/productList给pc使用

package com.yoho.search.restapi.scene;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
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.common.downgrade.persional.PersionalRateLimit;
import com.yoho.search.common.utils.HttpServletRequestUtils;
import com.yoho.search.models.SearchApiResult;
import com.yoho.search.service.service.IProductListService;
public class WebProductListController {
@Autowired
private IProductListService productListService;
/**
* pc-商品列表
*
* @return
*/
@PersionalRateLimit(isOrderUseable = true, name = "/productindex/productList")
@RequestMapping(method = RequestMethod.GET, value = "/web/productList")
@ResponseBody
public SearchApiResult webProductList(HttpServletRequest request) {
Map<String, String> paramMap = HttpServletRequestUtils.transParamType(request);
return productListService.productList(paramMap);
}
}
... ...