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