|
@@ -1,5 +1,6 @@
|
|
|
package com.tzld.piaoquan.recommend.server.web;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.google.protobuf.InvalidProtocolBufferException;
|
|
|
import com.tzld.piaoquan.recommend.server.client.ProtobufUtils;
|
|
|
import com.tzld.piaoquan.recommend.server.gen.recommend.RecommendRequest;
|
|
@@ -15,6 +16,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -63,7 +65,7 @@ public class RecommendV2Controller {
|
|
|
|
|
|
@PostMapping("/filterVideos")
|
|
|
public String filterVideos(@RequestBody FilterVideoRequest request){
|
|
|
- blacklistContainer.filterUnsafeVideoByUser(
|
|
|
+ List<Long> videoIds = blacklistContainer.filterUnsafeVideoByUser(
|
|
|
request.getVideoIds(),
|
|
|
request.getUid(),
|
|
|
request.getHotSceneType(),
|
|
@@ -73,7 +75,7 @@ public class RecommendV2Controller {
|
|
|
"devtest",
|
|
|
request.getAppType()
|
|
|
);
|
|
|
- return null;
|
|
|
+ return JSON.toJSONString(videoIds);
|
|
|
}
|
|
|
|
|
|
// @RequestMapping("/test/feedByRec")
|