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.
|
|
|
|
package com.supervision.vo.talk;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.supervision.dto.robot.SuspectInfo;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
@Data
|
|
|
|
|
public class RobotTalkReq {
|
|
|
|
|
|
|
|
|
|
private String sessionId;
|
|
|
|
|
|
|
|
|
|
private String message;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 问题内容类型:1-文本,2-音频,3-文件,4-图片,5-视频
|
|
|
|
|
*/
|
|
|
|
|
private Integer answerType;
|
|
|
|
|
|
|
|
|
|
private boolean confirmFlag;
|
|
|
|
|
|
|
|
|
|
// ========方便前端好传参=======>>>>>>
|
|
|
|
|
/**
|
|
|
|
|
* 名字
|
|
|
|
|
*/
|
|
|
|
|
private String name;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 卡号
|
|
|
|
|
*/
|
|
|
|
|
private String cardNumber;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 身份证件号
|
|
|
|
|
*/
|
|
|
|
|
private String idNumber;
|
|
|
|
|
|
|
|
|
|
// <<<<<========方便前端好传参=======
|
|
|
|
|
|
|
|
|
|
private SuspectInfo titleContent;
|
|
|
|
|
|
|
|
|
|
public void populateSuspectInfo() {
|
|
|
|
|
titleContent = new SuspectInfo();
|
|
|
|
|
if (StrUtil.isNotEmpty(name)){
|
|
|
|
|
titleContent.setName(name);
|
|
|
|
|
}
|
|
|
|
|
if (StrUtil.isNotEmpty(cardNumber)){
|
|
|
|
|
titleContent.setCardNumber(StrUtil.split(cardNumber,','));
|
|
|
|
|
}
|
|
|
|
|
if (StrUtil.isNotEmpty(idNumber)){
|
|
|
|
|
titleContent.setIdNumber(idNumber);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|