| | |
| | | package cn.lili.modules.lmk.service.impl; |
| | | |
| | | import cn.lili.common.security.context.UserContext; |
| | | import cn.lili.modules.lmk.domain.vo.CollectTypeNumVO; |
| | | import cn.lili.modules.lmk.domain.vo.SimpleMyThumbsUpVO; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import cn.lili.modules.lmk.domain.entity.ThumbsUpRecord; |
| | | import cn.lili.modules.lmk.mapper .ThumbsUpRecordMapper; |
| | |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | |
| | | @Override |
| | | public List<CollectTypeNumVO> countNumGroupByComment() { |
| | | return baseMapper.countNumGroupByComment(); |
| | | } |
| | | |
| | | @Override |
| | | public List<CollectTypeNumVO> countNumGroupByVideo() { |
| | | return baseMapper.countNumGroupByVideo(); |
| | | } |
| | | |
| | | @Override |
| | | public List<SimpleMyThumbsUpVO> getThumbssByVideoIds(List<String> videoIds) { |
| | | return baseMapper.getThumbssByVideoIds(videoIds, UserContext.getCurrentUserId()); |
| | | } |
| | | } |