|
|
|
@ -92,16 +92,16 @@ public class AppStoreProductController {
|
|
|
|
|
Map<String,Object> map = new LinkedHashMap<>(); |
|
|
|
|
// 精品推荐
|
|
|
|
|
if(ProductEnum.TYPE_1.getValue().equals(type)){ |
|
|
|
|
map.put("list",storeProductService.getList(1,20,ProductEnum.TYPE_1.getValue())); |
|
|
|
|
map.put("list",storeProductService.getList(1,30,ProductEnum.TYPE_1.getValue())); |
|
|
|
|
// 热门榜单
|
|
|
|
|
}else if(type.equals(ProductEnum.TYPE_2.getValue())){ |
|
|
|
|
map.put("list",storeProductService.getList(1,20,ProductEnum.TYPE_2.getValue())); |
|
|
|
|
map.put("list",storeProductService.getList(1,30,ProductEnum.TYPE_2.getValue())); |
|
|
|
|
// 首发新品
|
|
|
|
|
}else if(type.equals(ProductEnum.TYPE_3.getValue())){ |
|
|
|
|
map.put("list",storeProductService.getList(1,20,ProductEnum.TYPE_3.getValue())); |
|
|
|
|
map.put("list",storeProductService.getList(1,30,ProductEnum.TYPE_3.getValue())); |
|
|
|
|
// 促销单品
|
|
|
|
|
}else if(type.equals(ProductEnum.TYPE_4.getValue())){ |
|
|
|
|
map.put("list",storeProductService.getList(1,20,ProductEnum.TYPE_4.getValue())); |
|
|
|
|
map.put("list",storeProductService.getList(1,30,ProductEnum.TYPE_4.getValue())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return ApiResult.ok(map); |
|
|
|
|