|
|
@@ -12,7 +12,9 @@ import cn.reghao.tnb.content.app.vod.model.dto.VideoErrorReport;
|
|
|
import cn.reghao.tnb.content.app.vod.model.dto.VideoVipTags;
|
|
|
import cn.reghao.tnb.content.app.vod.model.po.VideoError;
|
|
|
import cn.reghao.tnb.content.app.vod.model.po.VipTag;
|
|
|
+import cn.reghao.tnb.search.api.iface.DataSearchService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.dubbo.config.annotation.DubboReference;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.List;
|
|
|
@@ -27,6 +29,9 @@ import java.util.stream.Collectors;
|
|
|
@Slf4j
|
|
|
@Service
|
|
|
public class VideoEditService {
|
|
|
+ @DubboReference(check = false, retries = 0, timeout = 60_000)
|
|
|
+ private DataSearchService dataSearchService;
|
|
|
+
|
|
|
private final VideoPostMapper videoPostMapper;
|
|
|
private final VipTagMapper vipTagMapper;
|
|
|
private final VideoErrorMapper videoErrorMapper;
|
|
|
@@ -74,6 +79,10 @@ public class VideoEditService {
|
|
|
videoErrorMapper.save(videoError);
|
|
|
}
|
|
|
|
|
|
+ if (videoStatus == VideoStatus.revoke.getCode()) {
|
|
|
+ dataSearchService.deleteVideoSummary(videoId);
|
|
|
+ }
|
|
|
+
|
|
|
return Result.success();
|
|
|
}
|
|
|
|