优化API文档

master
云丶言 2022-06-26 23:51:30 +08:00
parent 6a2e6adb31
commit 2c08954330
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class UserCartController {
} }
@ApiOperation("移除购物车商品") @ApiOperation("移除购物车商品")
@PostMapping("/user/del-cart") @GetMapping("/user/del-cart")
public ModelAndView delCart(ModelAndView modelAndView,int id){ public ModelAndView delCart(ModelAndView modelAndView,int id){
int sql = cartMapper.deleteById(id); int sql = cartMapper.deleteById(id);
if (sql == 1){ if (sql == 1){