mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-18 04:14:21 +08:00
(improvement)(Headless) Optimize return structure of MetaDiscovery interface (#986)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.tencent.supersonic.headless.api.pojo.response;
|
||||
|
||||
import com.tencent.supersonic.headless.api.pojo.SchemaElementMatch;
|
||||
import lombok.Data;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class DataSetMapInfo {
|
||||
|
||||
private String name;
|
||||
|
||||
private String description;
|
||||
|
||||
private List<SchemaElementMatch> mapFields;
|
||||
|
||||
private List<SchemaElementMatch> topFields;
|
||||
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.tencent.supersonic.headless.api.pojo.response;
|
||||
|
||||
import com.tencent.supersonic.headless.api.pojo.SchemaElementMatch;
|
||||
import com.tencent.supersonic.headless.api.pojo.Term;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -12,9 +11,7 @@ public class MapInfoResp {
|
||||
|
||||
private String queryText;
|
||||
|
||||
private Map<String, List<SchemaElementMatch>> mapFields;
|
||||
|
||||
private Map<String, List<SchemaElementMatch>> topFields;
|
||||
private Map<String, DataSetMapInfo> dataSetMapInfo;
|
||||
|
||||
private Map<String, List<Term>> terms;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user