...
|
...
|
@@ -48,6 +48,21 @@ public class SearchExplainerController { |
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/tools/clearExplainCachedData")
|
|
|
@ResponseBody
|
|
|
public Map<String, Object> clearExplainCachedData(HttpServletRequest request) {
|
|
|
try {
|
|
|
searchExplainerService.clearCachedData();
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("code", "200");
|
|
|
map.put("message", "succeed");
|
|
|
return map;
|
|
|
} catch (Throwable t) {
|
|
|
logger.error(t.getMessage(), t);
|
|
|
return errorResult(t.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/tools/tokens")
|
|
|
@ResponseBody
|
|
|
public Map<String, Object> getTokens(@RequestParam String skn) {
|
...
|
...
|
|