| | |
| | | package cn.lili.modules.lmk.mapper; |
| | | |
| | | import cn.lili.modules.lmk.domain.entity.Video; |
| | | import cn.lili.modules.lmk.domain.query.AuthorVideoQuery; |
| | | import cn.lili.modules.lmk.domain.query.ManagerVideoQuery; |
| | | import cn.lili.modules.lmk.domain.vo.CollectTypeNumVO; |
| | | import cn.lili.modules.lmk.domain.vo.VideoAccountVO; |
| | | import cn.lili.modules.lmk.domain.vo.WxVideoVO; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import cn.lili.modules.lmk.domain.vo.VideoVO; |
| | |
| | | * @param numList |
| | | */ |
| | | void updateCollectNumBatch(@Param("list") List<CollectTypeNumVO> numList); |
| | | |
| | | /** |
| | | * 批量更新视频评论数量 |
| | | * |
| | | * @param numList |
| | | */ |
| | | void updateCommentNumBatch(@Param("list") List<CollectTypeNumVO> numList); |
| | | |
| | | /** |
| | | * 视频主页作者信息 |
| | | * |
| | | * @param authorId |
| | | * @return |
| | | */ |
| | | VideoAccountVO getAuthorInfo(@Param("authorId") String authorId, @Param("currentUserId") String currentUserId); |
| | | |
| | | /** |
| | | * 获取作者的所有视频id |
| | | * |
| | | * @param authorId |
| | | * @return |
| | | */ |
| | | List<String> getVideoIdsByAuthor(@Param("authorId") String authorId); |
| | | |
| | | /** |
| | | * 获取作者所有视频的收藏数之和 |
| | | * |
| | | * @param videoIds |
| | | * @return |
| | | */ |
| | | Long countAuthorVideoCollectNum(@Param("videoIds") List<String> videoIds); |
| | | |
| | | /** |
| | | * 获取视频主页-作者视频的分页 |
| | | * |
| | | * @param page |
| | | * @param query |
| | | */ |
| | | IPage getAuthorVideoPage(IPage page, @Param("query") AuthorVideoQuery query); |
| | | } |