添加/web/productList给pc使用
Showing
1 changed file
with
34 additions
and
0 deletions
1 | +package com.yoho.search.restapi.scene; | ||
2 | + | ||
3 | +import java.util.Map; | ||
4 | + | ||
5 | +import javax.servlet.http.HttpServletRequest; | ||
6 | + | ||
7 | +import org.springframework.beans.factory.annotation.Autowired; | ||
8 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
9 | +import org.springframework.web.bind.annotation.RequestMethod; | ||
10 | +import org.springframework.web.bind.annotation.ResponseBody; | ||
11 | + | ||
12 | +import com.yoho.search.common.downgrade.persional.PersionalRateLimit; | ||
13 | +import com.yoho.search.common.utils.HttpServletRequestUtils; | ||
14 | +import com.yoho.search.models.SearchApiResult; | ||
15 | +import com.yoho.search.service.service.IProductListService; | ||
16 | + | ||
17 | +public class WebProductListController { | ||
18 | + | ||
19 | + @Autowired | ||
20 | + private IProductListService productListService; | ||
21 | + | ||
22 | + /** | ||
23 | + * pc-商品列表 | ||
24 | + * | ||
25 | + * @return | ||
26 | + */ | ||
27 | + @PersionalRateLimit(isOrderUseable = true, name = "/productindex/productList") | ||
28 | + @RequestMapping(method = RequestMethod.GET, value = "/web/productList") | ||
29 | + @ResponseBody | ||
30 | + public SearchApiResult webProductList(HttpServletRequest request) { | ||
31 | + Map<String, String> paramMap = HttpServletRequestUtils.transParamType(request); | ||
32 | + return productListService.productList(paramMap); | ||
33 | + } | ||
34 | +} |
-
Please register or login to post a comment