|
|
@@ -35,10 +35,13 @@ public class VideoQueryService {
|
|
|
private VideoTagMapper videoTagMapper;
|
|
|
|
|
|
public VideoQueryService(ContentPermission contentPermission, VideoPostMapper videoPostMapper,
|
|
|
- VideoPostQuery videoPostQuery) {
|
|
|
+ VideoPostQuery videoPostQuery, VideoPostTagMapper videoPostTagMapper,
|
|
|
+ VideoTagMapper videoTagMapper) {
|
|
|
this.contentPermission = contentPermission;
|
|
|
this.videoPostMapper = videoPostMapper;
|
|
|
this.videoPostQuery = videoPostQuery;
|
|
|
+ this.videoPostTagMapper = videoPostTagMapper;
|
|
|
+ this.videoTagMapper = videoTagMapper;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -86,10 +89,10 @@ public class VideoQueryService {
|
|
|
return WebResult.notFound();
|
|
|
}
|
|
|
|
|
|
- List<String> postTags = videoPostTagMapper.findVideoTags(videoId);
|
|
|
+ /*List<String> postTags = videoPostTagMapper.findVideoTags(videoId);
|
|
|
for (String tagName : postTags) {
|
|
|
List<String> videoIds = videoTagMapper.findVideoIds(tagName);
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
LocalDateTime publishAt = videoPost.getPublishAt();
|
|
|
long publishBy = videoPost.getPublishBy();
|