feat: 增加上传组件链接

This commit is contained in:
wangyu 2021-04-07 16:42:54 +08:00
parent 54d4d0716c
commit a31e7f6f68
1 changed files with 5 additions and 1 deletions

View File

@ -142,7 +142,11 @@ public class BeanProperty {
// 当存在db-ref时解析为动态数据源 // 当存在db-ref时解析为动态数据源
Optional<String> optional = processDbRef(clazz); Optional<String> optional = processDbRef(clazz);
if (optional.isPresent()) { if (optional.isPresent()) {
property.prop("uri", optional.get()); if ("Attachment".equals(descriptor.getPropertyType().getSimpleName())) {
property.prop("attachment", true);
} else {
property.prop("uri", optional.get());
}
} else { } else {
property.setType(BeanPropertyType.STRING); property.setType(BeanPropertyType.STRING);
} }