REQ-3540: 更新文件大小
This commit is contained in:
parent
b7f68fc7a6
commit
c00b31e894
@ -55,10 +55,6 @@ abstract class NodeCreateTemplateDatabase implements NodeCreate {
|
||||
public final IndexNodeAttributes attributes() {
|
||||
IndexNodeAttributes attributes = IndexNodeAttributes.create();
|
||||
attributes.setTemplateDatabaseNode(true);
|
||||
postProcessAttributes(attributes);
|
||||
return attributes;
|
||||
}
|
||||
|
||||
protected void postProcessAttributes(IndexNodeAttributes attributes) {
|
||||
}
|
||||
}
|
||||
|
||||
@ -7,7 +7,6 @@ import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
|
||||
import cn.axzo.nanopart.doc.api.domain.IndexNodeAttributes;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -34,11 +33,6 @@ public class TemplateDatabaseCreateDirRequest extends NodeCreateTemplateDatabase
|
||||
*/
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* 是否为自定义的图标
|
||||
*/
|
||||
private boolean customIcon;
|
||||
|
||||
public String icon() {
|
||||
return StringUtils.isBlank(icon) ? "" : icon;
|
||||
}
|
||||
@ -51,11 +45,6 @@ public class TemplateDatabaseCreateDirRequest extends NodeCreateTemplateDatabase
|
||||
return StringUtils.isBlank(description) ? "" : description;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void postProcessAttributes(IndexNodeAttributes attributes) {
|
||||
attributes.setCustomIcon(customIcon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return JSON.toJSONString(this);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user