REQ-3540: oss client

This commit is contained in:
yanglin 2025-03-17 15:10:34 +08:00
parent e6aa70250f
commit 1e1d8bf0ad
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ public class TemplateDatabaseCreateDirRequest extends NodeCreateTemplateDatabase
@Override
public IndexNodeAttributes attributes() {
IndexNodeAttributes attributes = IndexNodeAttributes.create();
attributes.getOrCreateDirectoryAttributes().setTemplateDatabaseDir(true);
attributes.getOrCreateDirectoryAttributes().setIsTemplateDatabaseDir(true);
attributes.setCustomIcon(customIcon);
return attributes;
}

View File

@ -34,7 +34,7 @@ public class TemplateDatabaseQueryService {
response.getDatabaseOrDirInfo().setBizCode(indexNode.getBizCode());
response.getDatabaseOrDirInfo().setDescription(indexNode.getDescription());
response.getDatabaseOrDirInfo().setIcon(indexNode.getIcon());
response.getDatabaseOrDirInfo().setCustomIcon(indexNode.getOrCreateAttributes().isCustomIcon());
response.getDatabaseOrDirInfo().setCustomIcon(indexNode.getOrCreateAttributes().getCustomIcon());
if (indexNode.isDatabase()) {
TemplateDatabase template = templateDatabaseDao.findOrNull(request.getCode());
if (template != null) {