@RequestMapping(value = "/admin/category/{category}", method = RequestMethod.GET) public @ResponseBody List<Product> getList4Admin(@PathVariable("category") String category) { return productService.getList(category); }
@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); }