文档中心sdk增加文件标识属性
This commit is contained in:
@ -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);
|
||||||
|
@ -15,5 +15,8 @@ public class AttachmentEntity {
|
|||||||
|
|
||||||
/* 附件名称 */
|
/* 附件名称 */
|
||||||
private String filename;
|
private String filename;
|
||||||
|
|
||||||
|
/* 文件唯一标识 */
|
||||||
|
private String key;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user