From 54ad966d0b142c97fc659263b51d1ea5d7b5c7c6 Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期五, 28 五月 2021 16:17:08 +0800 Subject: [PATCH] 修改bug --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComShopCartService.java | 40 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComShopCartService.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComShopCartService.java index d486039..908226b 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComShopCartService.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComShopCartService.java @@ -1,7 +1,12 @@ package com.panzhihua.service_community.service; import com.baomidou.mybatisplus.extension.service.IService; +import com.panzhihua.common.model.dtos.shop.ComShopCartDTO; +import com.panzhihua.common.model.dtos.shop.ComShopEditNubCartDTO; +import com.panzhihua.common.model.vos.R; import com.panzhihua.service_community.model.dos.ComShopCartDO; + +import java.util.List; /** * @auther lyq @@ -10,6 +15,41 @@ */ public interface ComShopCartService extends IService<ComShopCartDO> { + /** + * 根据用户id查询购物车列表信息 + * @param userId 用户id + * @return 购物车列表信息 + */ + R shopCartList(Long userId); + + /** + * 购物车添加 + * @param comShopCartDTO 请求参数 + * @return 添加结果 + */ + R shopAddCart(ComShopCartDTO comShopCartDTO); + + /** + * 购物车内商品数量修改 + * @param shopEditNubCartDTO 请求参数 + * @return 修改结果 + */ + R shopEditNubCart(ComShopEditNubCartDTO shopEditNubCartDTO); + + /** + * 删除购物车记录 + * @param Ids 购物车id集合 + * @return 删除结果 + */ + R shopDelCart(List<Long> Ids); + + /** + * 查询用户购物车商品数量 + * @param userId 用户id + * @return 用户购物车商品数量 + */ + R shopCartUserTotal(Long userId); + } -- Gitblit v1.7.1