|
@ -42,7 +42,7 @@ public class TextSearchEndPoint extends EnvelopRestEndPoint {
|
|
private ProfileSearchService profileSearchService;
|
|
private ProfileSearchService profileSearchService;
|
|
|
|
|
|
@ApiOperation(value = "全文检索")
|
|
@ApiOperation(value = "全文检索")
|
|
@RequestMapping(value = "/resources/text/search", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = MicroServiceApi.TextSearch.TextSearch, method = RequestMethod.GET)
|
|
public Envelop countEhrCenter(
|
|
public Envelop countEhrCenter(
|
|
@ApiParam(name = "keyword", value = "关键词")
|
|
@ApiParam(name = "keyword", value = "关键词")
|
|
@RequestParam(value = "keyword", required = false) String keyword,
|
|
@RequestParam(value = "keyword", required = false) String keyword,
|
|
@ -88,7 +88,7 @@ public class TextSearchEndPoint extends EnvelopRestEndPoint {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("获取热搜")
|
|
@ApiOperation("获取热搜")
|
|
@RequestMapping(value = MicroServiceApi.ProfileSearch.Hotwords, method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = MicroServiceApi.TextSearch.HotWords, method = RequestMethod.GET)
|
|
public List<String> getHotWords(
|
|
public List<String> getHotWords(
|
|
@ApiParam(name = "reCount", value = "返回个数", required = true)
|
|
@ApiParam(name = "reCount", value = "返回个数", required = true)
|
|
@RequestParam(value = "reCount") int reCount,
|
|
@RequestParam(value = "reCount") int reCount,
|
|
@ -99,7 +99,7 @@ public class TextSearchEndPoint extends EnvelopRestEndPoint {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("更新热搜")
|
|
@ApiOperation("更新热搜")
|
|
@RequestMapping(value = MicroServiceApi.ProfileSearch.Hotwords, method = RequestMethod.POST)
|
|
|
|
|
|
@RequestMapping(value = MicroServiceApi.TextSearch.HotWords, method = RequestMethod.POST)
|
|
public boolean updateHotWords(
|
|
public boolean updateHotWords(
|
|
@ApiParam(name = "searchText", value = "搜索关键词", required = true)
|
|
@ApiParam(name = "searchText", value = "搜索关键词", required = true)
|
|
@RequestParam(value = "searchText") String searchText,
|
|
@RequestParam(value = "searchText") String searchText,
|