|
@@ -58,6 +58,19 @@ public class CartClubApi {
|
|
|
return cartClubService.getShoppingCartHead(userId);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取购物车商品种类
|
|
|
+ */
|
|
|
+ @ApiOperation("获取购物车数量(旧:/home/modules内)")
|
|
|
+ @ApiImplicitParam(required = true, name = "userId", value = "用户Id")
|
|
|
+ @GetMapping("/cart/count")
|
|
|
+ public ResponseJson<Integer> getShoppingCartCount(Integer userId) {
|
|
|
+ if (null == userId) {
|
|
|
+ return ResponseJson.error("用户Id不能为空!", null);
|
|
|
+ }
|
|
|
+ return cartClubService.getUserCartCount(userId);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 添加购物车
|
|
|
*
|