文档中心sdk增加文件标识属性

This commit is contained in:
ajaxfan
2021-02-20 10:47:07 +08:00
parent 329993b16a
commit 6d8155aca6
3 changed files with 5 additions and 1 deletions

View File

@ -72,7 +72,7 @@ public class DefaultAttachmentClient implements AttachmentClient {
modelConvertor.toQueryResult(json).ifPresent(result -> { modelConvertor.toQueryResult(json).ifPresent(result -> {
result.getData().stream().forEach(data -> { result.getData().stream().forEach(data -> {
detail.add(new AttachmentEntity().setBid(data.getObjectId()).setId(data.getFileId()) detail.add(new AttachmentEntity().setBid(data.getObjectId()).setId(data.getFileId())
.setFilename(data.getOriginalName())); .setFilename(data.getOriginalName()).setKey(data.getFileName()));
}); });
}); });
return Optional.ofNullable(detail); return Optional.ofNullable(detail);

View File

@ -15,5 +15,8 @@ public class AttachmentEntity {
/* 附件名称 */ /* 附件名称 */
private String filename; private String filename;
/* 文件唯一标识 */
private String key;
} }

View File

@ -8,5 +8,6 @@ public class QueryData {
private String fileId; private String fileId;
private String objectId; private String objectId;
private String originalName; private String originalName;
private String fileName;
} }