package cn.lili.modules.lmk.mapper;
|
|
import cn.lili.modules.lmk.domain.entity.VideoComment;
|
import cn.lili.modules.lmk.domain.vo.CollectTypeNumVO;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import cn.lili.modules.lmk.domain.vo.VideoCommentVO;
|
import cn.lili.modules.lmk.domain.form.VideoCommentForm;
|
import cn.lili.modules.lmk.domain.query.VideoCommentQuery;
|
import java.util.List;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
/**
|
* 视频评论 Mapper 接口
|
*
|
* @author xp
|
* @since 2025-05-27
|
*/
|
@Mapper
|
public interface VideoCommentMapper extends BaseMapper<VideoComment> {
|
|
/**
|
* id查找视频评论
|
* @param id
|
* @return
|
*/
|
VideoCommentVO getById(String id);
|
|
/**
|
* 分页
|
*/
|
IPage getPage(IPage page, @Param("query") VideoCommentQuery query);
|
|
/**
|
* 小程序主评论分页查询
|
*
|
* @param page
|
* @param query
|
* @return
|
*/
|
IPage masterCommentPage(IPage page, @Param("query") VideoCommentQuery query);
|
|
/**
|
* 小程序回复评论
|
*
|
* @param query
|
*/
|
IPage replyCommentPage(IPage page, @Param("query") VideoCommentQuery query);
|
|
/**
|
* 统计每个视频的评论数量
|
*
|
* @return
|
*/
|
List<CollectTypeNumVO> countNumGroupByVideo();
|
}
|