Beispiel #1
0
 @RequestMapping(value = "/admin/category/{category}", method = RequestMethod.GET)
 public @ResponseBody List<Product> getList4Admin(@PathVariable("category") String category) {
   return productService.getList(category);
 }
Beispiel #2
0
 @RequestMapping(value = "/category/{category}/wechatid/{wechatid}", method = RequestMethod.GET)
 public @ResponseBody List<Product> getList(
     @PathVariable("category") String category, @PathVariable("wechatid") String wechatid) {
   //        return productService.getListByFavourites(category, wechatid);
   return productService.getList(category);
 }