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
65
66
67
68
69
70
71
72
73
74
75
76
package cn.lili.modules.lmk.mapper;
 
import cn.lili.modules.lmk.domain.entity.MyCollect;
import cn.lili.modules.lmk.domain.vo.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.lili.modules.lmk.domain.query.MyCollectQuery;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
/**
 * 我的收藏 Mapper 接口
 *
 * @author xp
 * @since 2025-05-22
 */
@Mapper
public interface MyCollectMapper extends BaseMapper<MyCollect> {
 
    /**
     * id查找我的收藏
     * @param id
     * @return
     */
    MyCollectVO getById(String id);
 
    /**
    *  分页
    */
    IPage getPage(IPage page, @Param("query") MyCollectQuery query);
 
    /**
     * 查询某人收藏对应视频没
     *
     * @param videoIds
     * @param currentUserId
     * @return
     */
    List<SimpleMyCollectVO> getCollectsByVideoIds(@Param("videoIds") List<String> videoIds, @Param("userId") String currentUserId);
 
    /**
     * 根据某收藏类型id分组统计数量,比如:统计每个视频的收藏数
     *
     * @param type
     * @return
     */
    List<CollectTypeNumVO> countNumGroupByType(@Param("type") String type);
 
 
    /**
     * 获得我的收藏 活动
     * @param page
     * @param userId
     * @return
     */
    IPage getActivityCollectPage(IPage page,@Param("userId")String userId);
 
    /**
     * 获得我的收藏 店铺
     * @param page
     * @param userId
     * @return
     */
    IPage getStoreCollectPage(IPage page,@Param("userId")String userId);
 
    /**
     * 获得我的收藏 视频
     * @param page
     * @param userId
     * @return
     */
    IPage getVideoCollectPage(IPage page,@Param("userId")String userId);
 
    IPage getGoodsCollectPage(IPage page,@Param("userId")String type);
}