添加购物车删除商品接口
@ -47,6 +47,11 @@ public class CartController extends BaseController {
return iCartService.addCart(cart);
}
@DeleteMapping("{cartId}")
public R delete(@PathVariable Long cartId) {
return R.result(iCartService.removeById(cartId));
@GetMapping("goodsCount")
public R goodsCount() {
return iCartService.goodsCount();