|
|
@@ -36,7 +36,7 @@ public class ProductController {
|
|
|
return ResultVO.buildSuccess(productService.getProduct(id));
|
|
|
}
|
|
|
|
|
|
- @GetMapping("/condition")
|
|
|
+ @PostMapping("/condition")
|
|
|
public ResultVO<List<ProductVO>> getProductsWithCondition(@RequestBody ProductVO productVO){
|
|
|
return ResultVO.buildSuccess(productService.getProductsWithCondition(productVO.getName(),productVO.getCategory(),productVO.getPrice()));
|
|
|
}
|