mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 03:58:14 +00:00
[improvement][chat]Make a few code restructure.
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
package com.tencent.supersonic.headless.api.pojo.response;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.tencent.supersonic.common.pojo.Text2SQLExemplar;
|
||||
import com.tencent.supersonic.headless.api.pojo.SemanticParseInfo;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Data
|
||||
public class ParseResp {
|
||||
public class ParseResp implements Serializable {
|
||||
private final String queryText;
|
||||
private ParseState state = ParseState.PENDING;
|
||||
private String errorMsg;
|
||||
|
||||
@@ -2,8 +2,10 @@ package com.tencent.supersonic.headless.api.pojo.response;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class ParseTimeCostResp {
|
||||
public class ParseTimeCostResp implements Serializable {
|
||||
|
||||
private long parseStartTime;
|
||||
private long parseTime;
|
||||
|
||||
Reference in New Issue
Block a user