This commit is contained in:
xxy 2025-04-25 17:54:26 +08:00
parent 6c32b92e73
commit f3bcd3aa0c
2 changed files with 17 additions and 0 deletions

View File

@ -40,6 +40,16 @@ public class ProductController {
@Autowired
private ProductService productService;
/**
* 为你推荐
*/
@ApiOperation(value = "热门商品推荐")
@RequestMapping(value = "/pageList/suggest", method = RequestMethod.GET)
public CommonResult<CommonPage<IndexProductResponse>> getProductSuggestionList(@RequestParam String searchWord) {
return CommonResult.success(productService.getProductSuggestionList(searchWord));
}
/**
* 热门商品推荐
*/

View File

@ -103,4 +103,11 @@ public interface ProductService {
* @return List
*/
List<StoreProduct> getLeaderboard();
/**
* !!!wby cc!!!
* 为你推荐
* @return List
*/
CommonPage<IndexProductResponse> getProductSuggestionList(String searchWord);
}