调用dify
This commit is contained in:
77
src/main/java/com/rj/entity/bz/ConsultingScenario.java
Normal file
77
src/main/java/com/rj/entity/bz/ConsultingScenario.java
Normal file
@@ -0,0 +1,77 @@
|
||||
package com.rj.entity.bz;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import java.time.LocalDateTime;
|
||||
import java.io.Serializable;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 咨询场景表
|
||||
* </p>
|
||||
*
|
||||
* @author lingma
|
||||
* @since 2025-09-02
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("consulting_scenario")
|
||||
@Schema(description="咨询场景表")
|
||||
public class ConsultingScenario implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = "UUID主键")
|
||||
@TableId("id")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "主分类")
|
||||
@TableField("main_category")
|
||||
private String mainCategory;
|
||||
|
||||
@Schema(description = "子分类")
|
||||
@TableField("sub_category")
|
||||
private String subCategory;
|
||||
|
||||
@Schema(description = "置信度")
|
||||
@TableField("confidence")
|
||||
private String confidence;
|
||||
|
||||
@Schema(description = "用户需求")
|
||||
@TableField("user_demand")
|
||||
private String userDemand;
|
||||
|
||||
@Schema(description = "咨询内容")
|
||||
@TableField("consulting_content")
|
||||
private String consultingContent;
|
||||
|
||||
@Schema(description = "涉及车型")
|
||||
@TableField("involved_vehicle_models")
|
||||
private String involvedVehicleModels;
|
||||
|
||||
@Schema(description = "知识缺口")
|
||||
@TableField("knowledge_gap")
|
||||
private String knowledgeGap;
|
||||
|
||||
@Schema(description = "优先级")
|
||||
@TableField("priority")
|
||||
private String priority;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@TableField("remarks")
|
||||
private String remarks;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@TableField("created_at")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Schema(description = "更新时间")
|
||||
@TableField("updated_at")
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
}
|
||||
188
src/main/java/com/rj/entity/bz/DifyWorkflowAnalysis.java
Normal file
188
src/main/java/com/rj/entity/bz/DifyWorkflowAnalysis.java
Normal file
@@ -0,0 +1,188 @@
|
||||
package com.rj.entity.bz;
|
||||
|
||||
/**
|
||||
* Author: 李中华 spllzh
|
||||
* Date: 2025/9/7 22:20
|
||||
**/
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* Dify工作流分析结果实体类
|
||||
*/
|
||||
@Data
|
||||
@TableName("dify_workflow_analysis")
|
||||
public class DifyWorkflowAnalysis {
|
||||
|
||||
/**
|
||||
* 主键ID (UUID格式)
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 企微客户unionId,用于唯一标识客户
|
||||
*/
|
||||
private String unionId;
|
||||
|
||||
/**
|
||||
* 顾问ID,标识服务客户的顾问
|
||||
*/
|
||||
private String consultantId;
|
||||
|
||||
/**
|
||||
* 沟通时间,客户与顾问的沟通时间
|
||||
*/
|
||||
private LocalDateTime communicateDate;
|
||||
|
||||
/**
|
||||
* 分析场景,如sales_consultation表示销售咨询
|
||||
*/
|
||||
private String analysisScene;
|
||||
|
||||
/**
|
||||
* AI分析请求ID,用于追踪分析请求
|
||||
*/
|
||||
private String analysisRecordId;
|
||||
|
||||
/**
|
||||
* 版本号,用于区分不同版本的分析
|
||||
*/
|
||||
private Integer version;
|
||||
|
||||
/**
|
||||
* 分析结果摘要,对整个对话的50字以内总结
|
||||
*/
|
||||
private String analysisResult;
|
||||
|
||||
/**
|
||||
* 客户来源,客户通过什么渠道联系
|
||||
*/
|
||||
private String customerSource;
|
||||
|
||||
/**
|
||||
* 客户职业信息
|
||||
*/
|
||||
private String customerOccupation;
|
||||
|
||||
/**
|
||||
* 客户兴趣爱好
|
||||
*/
|
||||
private String customerHobbies;
|
||||
|
||||
/**
|
||||
* 家庭住址信息
|
||||
*/
|
||||
private String homeAddress;
|
||||
|
||||
/**
|
||||
* 购车用途,如家庭用车、商务用车等
|
||||
*/
|
||||
private String carPurchaseNeed;
|
||||
|
||||
/**
|
||||
* 购买类型,如首购、增购、置换等
|
||||
*/
|
||||
private String purchaseType;
|
||||
|
||||
/**
|
||||
* 购车人类型,如个人、公司等
|
||||
*/
|
||||
private String purchaseBuyer;
|
||||
|
||||
/**
|
||||
* 用车人信息
|
||||
*/
|
||||
private String carUser;
|
||||
|
||||
/**
|
||||
* 意向车型,客户感兴趣的车辆型号
|
||||
*/
|
||||
private String intendedCarModel;
|
||||
|
||||
/**
|
||||
* 购车资质信息
|
||||
*/
|
||||
private String carQualifications;
|
||||
|
||||
/**
|
||||
* 购车预算信息
|
||||
*/
|
||||
private String carBudget;
|
||||
|
||||
/**
|
||||
* 金融分期相关信息
|
||||
*/
|
||||
private String financialInstallment;
|
||||
|
||||
/**
|
||||
* 购买周期,客户的购车时间计划
|
||||
*/
|
||||
private String purchaseCycle;
|
||||
|
||||
/**
|
||||
* 关注点,客户重点关注的车辆特性
|
||||
*/
|
||||
private String focusPoints;
|
||||
|
||||
/**
|
||||
* 担忧问题,客户担心的问题
|
||||
*/
|
||||
private String concerns;
|
||||
|
||||
/**
|
||||
* 竞品对比,客户对比的其他品牌车型
|
||||
*/
|
||||
private String carContrast;
|
||||
|
||||
/**
|
||||
* 产品介绍,顾问对产品的介绍内容
|
||||
*/
|
||||
private String productDescription;
|
||||
|
||||
/**
|
||||
* 解决方案,顾问提供的解决方案
|
||||
*/
|
||||
private String solution;
|
||||
|
||||
/**
|
||||
* 报价信息,车辆的价格信息
|
||||
*/
|
||||
private String quotation;
|
||||
|
||||
/**
|
||||
* 约定的后续行动,如试驾安排、再次联系等
|
||||
*/
|
||||
private String agreedFollowUpActions;
|
||||
|
||||
/**
|
||||
* 未解决问题,对话中尚未解决的问题
|
||||
*/
|
||||
private String unresolvedIssues;
|
||||
|
||||
/**
|
||||
* 原始语料,完整的客户与顾问对话内容
|
||||
*/
|
||||
private String originalCorpus;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private LocalDateTime updatedAt;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识,0-未删除,1-已删除
|
||||
*/
|
||||
@TableLogic
|
||||
private Integer isDeleted;
|
||||
}
|
||||
Reference in New Issue
Block a user