mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 22:08:56 +00:00
[improvement][chat] Optimize and modify the mapper method for terminology (#1866)
This commit is contained in:
@@ -7,11 +7,13 @@ import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ChatApp {
|
||||
public class ChatApp implements Serializable {
|
||||
private String name;
|
||||
private String description;
|
||||
private String prompt;
|
||||
|
||||
@@ -5,11 +5,13 @@ import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class Text2SQLExemplar {
|
||||
public class Text2SQLExemplar implements Serializable {
|
||||
|
||||
public static final String PROPERTY_KEY = "sql_exemplar";
|
||||
|
||||
|
||||
@@ -5,10 +5,12 @@ import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class User {
|
||||
public class User implements Serializable {
|
||||
|
||||
private Long id;
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.tencent.supersonic.common.util;
|
||||
|
||||
import org.apache.commons.lang3.SerializationUtils;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeepCopyUtil {
|
||||
|
||||
public static <T extends Serializable> T deepCopy(T object) {
|
||||
return SerializationUtils.clone(object);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user