Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public class Dataset extends BaseEntity<String> {
/**
* 额外元数据,JSON格式
*/
@TableField(typeHandler = PgJsonTypeHandler.class)
private String metadata;
/**
* 数据集状态
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

Expand Down Expand Up @@ -43,7 +44,7 @@ public static class FileRequest {
@Size(max = 1000, message = "文件路径长度不能超过1000个字符")
private String filePath;

private Map<String, Object> metadata;
private Map<String, Object> metadata = new HashMap<>();
}

private boolean softAdd;
Expand Down
Loading