From 32d6c2ea8039b4771fd6b1ded8b022733e32352f Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 03 四月 2021 18:56:57 +0800 Subject: [PATCH] 首页瀑布流 --- src/main/java/com/yeshi/buwan/service/imp/video/VideoWatchHistoryServiceImpl.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/service/imp/video/VideoWatchHistoryServiceImpl.java b/src/main/java/com/yeshi/buwan/service/imp/video/VideoWatchHistoryServiceImpl.java index 7de9ccf..c2e9cd9 100644 --- a/src/main/java/com/yeshi/buwan/service/imp/video/VideoWatchHistoryServiceImpl.java +++ b/src/main/java/com/yeshi/buwan/service/imp/video/VideoWatchHistoryServiceImpl.java @@ -43,4 +43,10 @@ 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); + } } -- Gitblit v1.8.0