feat: 增加上传组件链接

This commit is contained in:
wangyu 2021-04-07 16:42:54 +08:00
parent 54d4d0716c
commit a31e7f6f68

View File

@ -142,7 +142,11 @@ public class BeanProperty {
// 当存在db-ref时解析为动态数据源
Optional<String> optional = processDbRef(clazz);
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 {
property.setType(BeanPropertyType.STRING);
}