1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package cn.lili.modules.member.service;
 
import cn.lili.common.vo.PageVO;
import cn.lili.modules.member.entity.dos.GoodsCollection;
import cn.lili.modules.member.entity.vo.GoodsCollectionVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
 
import java.util.List;
 
/**
 * 商品收藏业务层
 *
 * @author Chopper
 * @since 2020/11/18 2:25 下午
 */
public interface GoodsCollectionService extends IService<GoodsCollection> {
 
    /**
     * 获取商品搜索分页
     *
     * @param pageVo 查询参数
     * @return 商品搜索分页
     */
    IPage<GoodsCollectionVO> goodsCollection(PageVO pageVo);
 
    /**
     * 是否收藏商品
     *
     * @param skuId 规格ID
     * @return 是否收藏
     */
    boolean isCollection(String skuId);
 
    /**
     * 添加商品收藏
     *
     * @param skuId 规格ID
     * @return 操作状态
     */
    GoodsCollection addGoodsCollection(String skuId);
 
    /**
     * 商品收藏
     *
     * @param skuId 规格ID
     * @return 操作状态
     */
    boolean deleteGoodsCollection(String skuId);
    /**
     * 删除商品收藏
     *
     * @param goodsIds 规格ID
     * @return 操作状态
     */
    boolean deleteGoodsCollection(List<String> goodsIds);
    /**
     * 删除商品SKU收藏
     *
     * @param skuIds 规格ID
     * @return 操作状态
     */
    boolean deleteSkuCollection(List<String> skuIds);
}