REQ-3540: 更新文件大小
This commit is contained in:
parent
a5aab38757
commit
b7f68fc7a6
@ -11,9 +11,4 @@ import lombok.Setter;
|
||||
@Getter
|
||||
public class DirectoryAttributes {
|
||||
|
||||
/**
|
||||
* 是否为资料库文件夹
|
||||
*/
|
||||
private Boolean isTemplateDatabaseDir;
|
||||
|
||||
}
|
||||
|
||||
@ -20,6 +20,11 @@ public class IndexNodeAttributes {
|
||||
*/
|
||||
private Boolean customIcon;
|
||||
|
||||
/**
|
||||
* 是否资料库创建的节点
|
||||
*/
|
||||
private Boolean templateDatabaseNode;
|
||||
|
||||
/**
|
||||
* 数据库属性
|
||||
*/
|
||||
|
||||
@ -3,11 +3,13 @@ package cn.axzo.nanopart.doc.api.templatedb.reqeust;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import cn.axzo.nanopart.doc.api.domain.IndexNodeAttributes;
|
||||
import cn.axzo.nanopart.doc.api.domain.IndexNodeScope;
|
||||
import cn.axzo.nanopart.doc.api.domain.NodeCreate;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
@ -48,4 +50,15 @@ abstract class NodeCreateTemplateDatabase implements NodeCreate {
|
||||
public Long operatorId() {
|
||||
return operatorId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final IndexNodeAttributes attributes() {
|
||||
IndexNodeAttributes attributes = IndexNodeAttributes.create();
|
||||
attributes.setTemplateDatabaseNode(true);
|
||||
postProcessAttributes(attributes);
|
||||
return attributes;
|
||||
}
|
||||
|
||||
protected void postProcessAttributes(IndexNodeAttributes attributes) {
|
||||
}
|
||||
}
|
||||
|
||||
@ -3,9 +3,10 @@ package cn.axzo.nanopart.doc.api.templatedb.reqeust;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
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;
|
||||
@ -51,11 +52,8 @@ public class TemplateDatabaseCreateDirRequest extends NodeCreateTemplateDatabase
|
||||
}
|
||||
|
||||
@Override
|
||||
public IndexNodeAttributes attributes() {
|
||||
IndexNodeAttributes attributes = IndexNodeAttributes.create();
|
||||
attributes.getOrCreateDirectoryAttributes().setIsTemplateDatabaseDir(true);
|
||||
protected void postProcessAttributes(IndexNodeAttributes attributes) {
|
||||
attributes.setCustomIcon(customIcon);
|
||||
return attributes;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
Reference in New Issue
Block a user