文档中心sdk增加文件标识属性
This commit is contained in:
@ -72,7 +72,7 @@ public class DefaultAttachmentClient implements AttachmentClient {
|
||||
modelConvertor.toQueryResult(json).ifPresent(result -> {
|
||||
result.getData().stream().forEach(data -> {
|
||||
detail.add(new AttachmentEntity().setBid(data.getObjectId()).setId(data.getFileId())
|
||||
.setFilename(data.getOriginalName()));
|
||||
.setFilename(data.getOriginalName()).setKey(data.getFileName()));
|
||||
});
|
||||
});
|
||||
return Optional.ofNullable(detail);
|
||||
|
@ -16,4 +16,7 @@ public class AttachmentEntity {
|
||||
/* 附件名称 */
|
||||
private String filename;
|
||||
|
||||
/* 文件唯一标识 */
|
||||
private String key;
|
||||
|
||||
}
|
||||
|
@ -8,5 +8,6 @@ public class QueryData {
|
||||
private String fileId;
|
||||
private String objectId;
|
||||
private String originalName;
|
||||
private String fileName;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user