根据Mq消息解析并调用战败分析
This commit is contained in:
@@ -3,4 +3,6 @@ package com.volvo.ai.analytic.center.constant;
|
||||
public class Constant {
|
||||
|
||||
public static final String rabbitMqFormQueue = "Voc-Defeat-Dcc";
|
||||
|
||||
public static final String CHANNEL_DCC = "Channel_Dcc";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.volvo.ai.analytic.center.dto.req;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class CallItem {
|
||||
private String sessionId;
|
||||
private String sourceId;
|
||||
private String audioTime;
|
||||
private int audioBillsec;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.volvo.ai.analytic.center.dto.req;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class DiFyReq {
|
||||
|
||||
private String user;
|
||||
private String flowId;
|
||||
private Object inputs;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.volvo.ai.analytic.center.dto.req;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class DiffDefeatanAlysis {
|
||||
|
||||
private String businessId;
|
||||
private String vdqwUserId;
|
||||
private String vdqwCustomerId;
|
||||
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date defeatTime;
|
||||
|
||||
private String approveCode;
|
||||
private String approveResult;
|
||||
private String approveOpinion;
|
||||
private List<CallItem> callList;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.volvo.ai.analytic.center.dto.req;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class DiffDefeatanApprove {
|
||||
|
||||
private String businessId;
|
||||
private String approveCode;
|
||||
private String approveResult;
|
||||
private String approveOpinion;
|
||||
}
|
||||
@@ -1,163 +1,14 @@
|
||||
package com.volvo.ai.analytic.center.dto.req;
|
||||
|
||||
import java.util.List;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* mq消息体解析对象
|
||||
*/
|
||||
@Data
|
||||
public class RabbitMqFormData {
|
||||
private String formId;
|
||||
private int sinceType;
|
||||
private int subSinceType;
|
||||
private Data data;
|
||||
|
||||
// Getters and Setters
|
||||
public String getFormId() {
|
||||
return formId;
|
||||
}
|
||||
|
||||
public void setFormId(String formId) {
|
||||
this.formId = formId;
|
||||
}
|
||||
|
||||
public int getSinceType() {
|
||||
return sinceType;
|
||||
}
|
||||
|
||||
public void setSinceType(int sinceType) {
|
||||
this.sinceType = sinceType;
|
||||
}
|
||||
|
||||
public int getSubSinceType() {
|
||||
return subSinceType;
|
||||
}
|
||||
|
||||
public void setSubSinceType(int subSinceType) {
|
||||
this.subSinceType = subSinceType;
|
||||
}
|
||||
|
||||
public Data getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(Data data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
|
||||
class Data {
|
||||
private String businessId;
|
||||
private String vdqwUserId;
|
||||
private String vdqwCustomerId;
|
||||
private String defeatTime;
|
||||
|
||||
private String approveCode;
|
||||
private String approveResult;
|
||||
private String approveOpinion;
|
||||
private List<CallList> callList;
|
||||
|
||||
// Getters and Setters
|
||||
public String getBusinessId() {
|
||||
return businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getVdqwUserId() {
|
||||
return vdqwUserId;
|
||||
}
|
||||
|
||||
public void setVdqwUserId(String vdqwUserId) {
|
||||
this.vdqwUserId = vdqwUserId;
|
||||
}
|
||||
|
||||
public String getVdqwCustomerId() {
|
||||
return vdqwCustomerId;
|
||||
}
|
||||
|
||||
public void setVdqwCustomerId(String vdqwCustomerId) {
|
||||
this.vdqwCustomerId = vdqwCustomerId;
|
||||
}
|
||||
|
||||
public String getDefeatTime() {
|
||||
return defeatTime;
|
||||
}
|
||||
|
||||
public void setDefeatTime(String defeatTime) {
|
||||
this.defeatTime = defeatTime;
|
||||
}
|
||||
|
||||
public String getApproveCode() {
|
||||
return approveCode;
|
||||
}
|
||||
|
||||
public void setApproveCode(String approveCode) {
|
||||
this.approveCode = approveCode;
|
||||
}
|
||||
|
||||
public String getApproveResult() {
|
||||
return approveResult;
|
||||
}
|
||||
|
||||
public void setApproveResult(String approveResult) {
|
||||
this.approveResult = approveResult;
|
||||
}
|
||||
|
||||
public String getApproveOpinion() {
|
||||
return approveOpinion;
|
||||
}
|
||||
|
||||
public void setApproveOpinion(String approveOpinion) {
|
||||
this.approveOpinion = approveOpinion;
|
||||
}
|
||||
|
||||
public List<CallList> getCallList() {
|
||||
return callList;
|
||||
}
|
||||
|
||||
public void setCallList(List<CallList> callList) {
|
||||
this.callList = callList;
|
||||
}
|
||||
}
|
||||
|
||||
class CallList {
|
||||
private String sessionId;
|
||||
private String sourceId;
|
||||
private String audioTime;
|
||||
private int audioBillsec;
|
||||
|
||||
// Getters and Setters
|
||||
public String getSessionId() {
|
||||
return sessionId;
|
||||
}
|
||||
|
||||
public void setSessionId(String sessionId) {
|
||||
this.sessionId = sessionId;
|
||||
}
|
||||
|
||||
public String getSourceId() {
|
||||
return sourceId;
|
||||
}
|
||||
|
||||
public void setSourceId(String sourceId) {
|
||||
this.sourceId = sourceId;
|
||||
}
|
||||
|
||||
public String getAudioTime() {
|
||||
return audioTime;
|
||||
}
|
||||
|
||||
public void setAudioTime(String audioTime) {
|
||||
this.audioTime = audioTime;
|
||||
}
|
||||
|
||||
public int getAudioBillsec() {
|
||||
return audioBillsec;
|
||||
}
|
||||
|
||||
public void setAudioBillsec(int audioBillsec) {
|
||||
this.audioBillsec = audioBillsec;
|
||||
}
|
||||
private Object data;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.volvo.ai.analytic.center.dto.resp;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class DiffDefeatAnalyseOutput {
|
||||
|
||||
|
||||
private Integer handleStatus;
|
||||
|
||||
private String resultStr;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.volvo.ai.analytic.center.dto.resp;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class DiffDefeatAnalyseOutputResult {
|
||||
|
||||
private DiffDefeatAnalyseOutput diffDefeatAnalyseOutput;
|
||||
|
||||
private String contentStr;
|
||||
|
||||
public DiffDefeatAnalyseOutputResult(DiffDefeatAnalyseOutput diffDefeatAnalyseOutput, String contentStr) {
|
||||
this.diffDefeatAnalyseOutput = diffDefeatAnalyseOutput;
|
||||
this.contentStr = contentStr;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.volvo.ai.analytic.center.dto.resp;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class DiffDefeatResult {
|
||||
|
||||
private String userStatus;
|
||||
|
||||
private String appointmentResult;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.volvo.ai.analytic.center.dto.resp;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class DiffDefeatanCallbak {
|
||||
|
||||
|
||||
private String businessId;
|
||||
|
||||
private String responseCode;
|
||||
|
||||
private String responseMsg;
|
||||
|
||||
private String label;
|
||||
|
||||
private String describe;
|
||||
|
||||
}
|
||||
@@ -1,94 +1,15 @@
|
||||
package com.volvo.ai.analytic.center.dto.resp;
|
||||
|
||||
import java.util.List;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* mq消息体解析对象
|
||||
*/
|
||||
@Data
|
||||
public class RabbitMqToData {
|
||||
private String formId;
|
||||
private int sinceType;
|
||||
private int subSinceType;
|
||||
private Data data;
|
||||
private DiffDefeatanCallbak data;
|
||||
|
||||
// Getters and Setters
|
||||
public String getFormId() {
|
||||
return formId;
|
||||
}
|
||||
|
||||
public void setFormId(String formId) {
|
||||
this.formId = formId;
|
||||
}
|
||||
|
||||
public int getSinceType() {
|
||||
return sinceType;
|
||||
}
|
||||
|
||||
public void setSinceType(int sinceType) {
|
||||
this.sinceType = sinceType;
|
||||
}
|
||||
|
||||
public int getSubSinceType() {
|
||||
return subSinceType;
|
||||
}
|
||||
|
||||
public void setSubSinceType(int subSinceType) {
|
||||
this.subSinceType = subSinceType;
|
||||
}
|
||||
|
||||
public Data getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(Data data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
|
||||
class Data {
|
||||
private String businessId;
|
||||
private String responseCode;
|
||||
private String responseMsg;
|
||||
private String label;
|
||||
private String describe;
|
||||
|
||||
public String getBusinessId() {
|
||||
return businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getResponseCode() {
|
||||
return responseCode;
|
||||
}
|
||||
|
||||
public void setResponseCode(String responseCode) {
|
||||
this.responseCode = responseCode;
|
||||
}
|
||||
|
||||
public String getResponseMsg() {
|
||||
return responseMsg;
|
||||
}
|
||||
|
||||
public void setResponseMsg(String responseMsg) {
|
||||
this.responseMsg = responseMsg;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getDescribe() {
|
||||
return describe;
|
||||
}
|
||||
|
||||
public void setDescribe(String describe) {
|
||||
this.describe = describe;
|
||||
}
|
||||
}
|
||||
@@ -29,18 +29,6 @@ public class DataMaskingRule extends BaseEntity {
|
||||
@TableField("is_deleted")
|
||||
private Integer isDeleted;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(value = "create_time", fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
|
||||
@@ -26,18 +26,6 @@ public class DiffdefeatApprove extends BaseEntity {
|
||||
@TableField("is_deleted")
|
||||
private Integer isDeleted;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(value = "create_time", fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
|
||||
@@ -100,18 +100,6 @@ public class MqMessageRecord extends BaseEntity {
|
||||
@TableField("is_deleted")
|
||||
private Integer isDeleted;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(value = "create_time", fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.volvo.ai.analytic.center.enums;
|
||||
|
||||
public enum MqTaskStatusEnum {
|
||||
Analysis_Wait(0, "待分析"),
|
||||
Analysis_Underway(1, "分析中"),
|
||||
Analysis_Completion(2, "分析完成"),
|
||||
Analysis_Failure(3, "分析失败"),
|
||||
;
|
||||
private int code;
|
||||
private String name;
|
||||
|
||||
MqTaskStatusEnum(int code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return this.code;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.volvo.ai.analytic.center.enums;
|
||||
|
||||
|
||||
public enum SubSinceTypeEnum {
|
||||
SinceType51(51, "真假战败分析请求"),
|
||||
SinceType52(52, "真假战败审批结果"),
|
||||
SinceType53(53, "真假战败分析结果"),
|
||||
;
|
||||
private int code;
|
||||
private String name;
|
||||
|
||||
SubSinceTypeEnum(int code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return this.code;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.volvo.ai.analytic.center.feign;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -12,6 +13,6 @@ public interface DiFyFeign {
|
||||
@PostMapping(value = "v1/workflows/run"
|
||||
, consumes = MediaType.APPLICATION_JSON_VALUE
|
||||
, produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
Object runWorkflows(@RequestHeader(value = "Authorization") String authorization, @RequestBody Map<String, Object> map);
|
||||
JSONObject runWorkflows(@RequestHeader(value = "Authorization") String authorization, @RequestBody Map<String, Object> map);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user