| | |
| | | package cn.lili.modules.lmk.mapper; |
| | | |
| | | import cn.lili.modules.lmk.domain.entity.Video; |
| | | import cn.lili.modules.lmk.domain.query.ManagerVideoQuery; |
| | | 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.VideoVO; |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | VideoVO getById(Integer id); |
| | | VideoVO getById(String id); |
| | | |
| | | /** |
| | | * 分页 |
| | | */ |
| | | IPage getPage(IPage page, @Param("query") VideoQuery query); |
| | | |
| | | /** |
| | | * 管理端分页 |
| | | * |
| | | * @param page |
| | | * @param query |
| | | */ |
| | | IPage managerPage(IPage page, @Param("query") ManagerVideoQuery query); |
| | | |
| | | /** |
| | | * 查出5个推荐视频 |
| | | * |
| | | * @return |
| | | */ |
| | | IPage recommendVideo(IPage page); |
| | | |
| | | /** |
| | | * 批量更新视频收藏数量 |
| | | * |
| | | * @param numList |
| | | */ |
| | | void updateCollectNumBatch(@Param("list") List<CollectTypeNumVO> numList); |
| | | |
| | | /** |
| | | * 批量更新视频评论数量 |
| | | * |
| | | * @param numList |
| | | */ |
| | | void updateCommentNumBatch(@Param("list") List<CollectTypeNumVO> numList); |
| | | } |