热词获取改为根据数量,传递count获取系统热搜词语

This commit is contained in:
Chopper
2021-07-30 14:27:41 +08:00
parent 6e611d3464
commit 0760c72ef8
6 changed files with 35 additions and 10 deletions

View File

@@ -115,8 +115,8 @@ public class GoodsBuyerController {
@ApiOperation(value = "获取搜索热词")
@GetMapping("/hot-words")
public ResultMessage<List<String>> getGoodsHotWords(Integer start, Integer end) {
List<String> hotWords = goodsSearchService.getHotWords(start, end);
public ResultMessage<List<String>> getGoodsHotWords(Integer count) {
List<String> hotWords = goodsSearchService.getHotWords(count);
return ResultUtil.data(hotWords);
}