mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 22:25:19 +00:00
(improvement)(Headless) Remove redundant datasetName in e MetaDiscovery interface (#993)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.tencent.supersonic.headless.api.pojo;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import lombok.Data;
|
||||
import java.util.List;
|
||||
|
||||
@@ -10,6 +11,6 @@ public class Term {
|
||||
|
||||
private String description;
|
||||
|
||||
private List<String> similarTerms;
|
||||
private List<String> similarTerms = Lists.newArrayList();
|
||||
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.tencent.supersonic.headless.api.pojo.response;
|
||||
import com.tencent.supersonic.headless.api.pojo.Term;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -11,8 +12,8 @@ public class MapInfoResp {
|
||||
|
||||
private String queryText;
|
||||
|
||||
private Map<String, DataSetMapInfo> dataSetMapInfo;
|
||||
private Map<String, DataSetMapInfo> dataSetMapInfo = new HashMap<>();
|
||||
|
||||
private Map<String, List<Term>> terms;
|
||||
private Map<String, List<Term>> terms = new HashMap<>();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user