You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
815 B
Java
36 lines
815 B
Java
package com.supervision.vo.kg;
|
|
|
|
import lombok.Data;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
@Data
|
|
public class ChatResVo {
|
|
|
|
private boolean success = true;
|
|
|
|
private String response;
|
|
|
|
List<SourceKgInfo> sourceKgInfoList;
|
|
|
|
public boolean isSuccess() {
|
|
return success;
|
|
}
|
|
|
|
public static ChatResVo makeError() {
|
|
ChatResVo chatResVo = new ChatResVo();
|
|
chatResVo.success = false;
|
|
chatResVo.response = "未查询到相关信息";
|
|
chatResVo.sourceKgInfoList = new ArrayList<>();
|
|
return chatResVo;
|
|
}
|
|
|
|
public static ChatResVo makeSuccess(String response) {
|
|
ChatResVo chatResVo = new ChatResVo();
|
|
chatResVo.response = response;
|
|
chatResVo.sourceKgInfoList = new ArrayList<>();
|
|
return chatResVo;
|
|
}
|
|
}
|