| | |
| | | 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 |
| | |
| | | */ |
| | | 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); |
| | | |
| | | |
| | | |
| | | } |