| | |
| | | import com.yeshi.buwan.dao.video.VideoWatchHistoryDao; |
| | | import com.yeshi.buwan.domain.video.VideoWatchHistory; |
| | | import com.yeshi.buwan.service.inter.video.VideoWatchHistoryService; |
| | | import org.springframework.data.annotation.Transient; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | public List<VideoWatchHistory> listHistory(String device, int page, int pageSize) { |
| | | return videoWatchHistoryDao.list(device, (page - 1) * pageSize, pageSize); |
| | | } |
| | | |
| | | @Override |
| | | public VideoWatchHistory getWatchHistory(String device, String videoId) { |
| | | String id = VideoWatchHistory.createId(device, videoId); |
| | | return videoWatchHistoryDao.get(id); |
| | | } |
| | | } |