diff --git a/waynboot-mobile-api/src/main/java/com/wayn/mobile/api/controller/SearchController.java b/waynboot-mobile-api/src/main/java/com/wayn/mobile/api/controller/SearchController.java index 593571f..bad85b7 100644 --- a/waynboot-mobile-api/src/main/java/com/wayn/mobile/api/controller/SearchController.java +++ b/waynboot-mobile-api/src/main/java/com/wayn/mobile/api/controller/SearchController.java @@ -62,6 +62,12 @@ public class SearchController extends BaseController { private ElasticDocument elasticDocument; + /** + * 商城搜索建议 + * @param searchVO + * @return + * @throws IOException + */ @GetMapping("sugguest") public R sugguest(SearchVO searchVO) throws IOException { String keyword = searchVO.getKeyword(); @@ -77,6 +83,12 @@ public class SearchController extends BaseController { return R.success().add("suggest", list); } + /** + * 商城搜索结果 + * @param searchVO + * @return + * @throws IOException + */ @GetMapping("result") public R result(SearchVO searchVO) throws IOException { // 获取筛选、排序条件 @@ -167,39 +179,16 @@ public class SearchController extends BaseController { } /** - * 关键字提醒 - *
- * 当用户输入关键字一部分时,可以推荐系统中合适的关键字。
- *
- * @param keyword 关键字
- * @return 合适的关键字
+ * 热门搜索
+ * @return R
*/
- @GetMapping("helper")
- public R helper(@NotEmpty String keyword) {
- Page