|
|
@@ -15,7 +15,7 @@ public class ProductController {
|
|
|
@Autowired
|
|
|
ProductService productService;
|
|
|
|
|
|
- @PostMapping()
|
|
|
+ @PostMapping
|
|
|
public ResultVO<Boolean> create(@RequestBody ProductVO productVO){
|
|
|
return ResultVO.buildSuccess(productService.create(productVO));
|
|
|
}
|
|
|
@@ -25,7 +25,7 @@ public class ProductController {
|
|
|
return ResultVO.buildSuccess(productService.addStock(id,number));
|
|
|
}
|
|
|
|
|
|
- @GetMapping()
|
|
|
+ @GetMapping
|
|
|
public ResultVO<List<ProductVO>> getAllProducts(@RequestParam("storeId") Integer storeId){
|
|
|
return ResultVO.buildSuccess(productService.getAllProducts(storeId));
|
|
|
}
|