| 
														
															@@ -3,8 +3,6 @@ package com.tzld.longarticle.recommend.server.web; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.tzld.longarticle.recommend.server.model.RecommendRequest; 
														 | 
														
														 | 
														
															 import com.tzld.longarticle.recommend.server.model.RecommendRequest; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.tzld.longarticle.recommend.server.model.RecommendResponse; 
														 | 
														
														 | 
														
															 import com.tzld.longarticle.recommend.server.model.RecommendResponse; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.tzld.longarticle.recommend.server.service.RecommendService; 
														 | 
														
														 | 
														
															 import com.tzld.longarticle.recommend.server.service.RecommendService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import com.tzld.longarticle.recommend.server.util.JSONUtils; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import com.tzld.longarticle.recommend.server.util.TraceUtils; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import lombok.extern.slf4j.Slf4j; 
														 | 
														
														 | 
														
															 import lombok.extern.slf4j.Slf4j; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.springframework.beans.factory.annotation.Autowired; 
														 | 
														
														 | 
														
															 import org.springframework.beans.factory.annotation.Autowired; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.springframework.web.bind.annotation.RequestBody; 
														 | 
														
														 | 
														
															 import org.springframework.web.bind.annotation.RequestBody; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -21,11 +19,9 @@ public class RecommendController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private RecommendService recommendService; 
														 | 
														
														 | 
														
															     private RecommendService recommendService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @RequestMapping("/recommend") 
														 | 
														
														 | 
														
															     @RequestMapping("/recommend") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    public String homepageRecommend(@RequestBody RecommendRequest httpRequest) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    public RecommendResponse homepageRecommend(@RequestBody RecommendRequest httpRequest) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        RecommendResponse response = recommendService.recommend(httpRequest); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        return JSONUtils.toJson(response); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        return recommendService.recommend(httpRequest); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 |