ä¿重构获取文件路径接口

This commit is contained in:
luke 2025-06-03 14:30:33 +08:00
parent 49d51c371d
commit b6c86679fd

View File

@ -91,12 +91,14 @@ public class SearchController {
return Maps.newHashMap();
}
List<String> fileNames = (List)req.get("fileNames");
Map<String, Object> result = Maps.newHashMap();
Map<String, Object> filePaths = Maps.newHashMap();
fileNames.forEach(name -> {
if(LocalCacheUtil.get(name) != null) {
result.put(name, LocalCacheUtil.get(name));
filePaths.put(name, LocalCacheUtil.get(name));
}
});
Map<String, Object> result = Maps.newHashMap();
result.put("filePaths", filePaths);
return result;
}