packagecom.yzy.sell.Controller;importcom.yzy.sell.Entity.ProductCategory;importcom.yzy.sell.Entity.ProductInfo;importcom.yzy.sell.Service.CategoryService;importcom.yzy.sell.Service.ProductService;importcom.yzy.sell.VO.ProductInfoVO;importcom.yzy.sell.VO.ProductVO;importcom.yzy.sell.VO.ResultVO;importcom.yzy.sell.utils.ResultVOUtil;importorg.springframework.beans.BeanUtils;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.web.bind.annotation.GetMapping;importorg.springframework.web.bind.annotation.RequestMapping;importorg.springframework.web.bind.annotation.RestController;importjava.util.ArrayList;importjava.util.List;importjava.util.stream.Collectors;
@RestController//注解@RestController标记在类上,表示该类处理http请求,并且返回json数据
@RequestMapping("/buyer/product")public classBuyerProductController {
@AutowiredprivateProductService productService;
@Autowiredpriv