日志表和异常表初始化
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package com.volvo.ai.analytic.center.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.volvo.common.core.base.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@TableName("tt_ai_analysis_errors")
|
||||
public class AiAnalysisErrors extends BaseEntity {
|
||||
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@TableField("ai_analysis_request_id")
|
||||
private String aiAnalysisRequestId;
|
||||
|
||||
@TableField("dify_response")
|
||||
private String difyResponse; // JSON 字符串
|
||||
|
||||
@TableField("ai_analysis_error_handling_status")
|
||||
private String aiAnalysisErrorHandlingStatus;
|
||||
|
||||
@TableField("ai_analysis_error_message")
|
||||
private String aiAnalysisErrorMessage; // JSON 字符串
|
||||
|
||||
@TableField("retry_count")
|
||||
private Integer retryCount;
|
||||
|
||||
@TableField("max_retry_count")
|
||||
private Integer maxRetryCount;
|
||||
|
||||
@TableField("is_deleted")
|
||||
@TableLogic
|
||||
private Integer isDeleted;
|
||||
|
||||
@TableField("versions")
|
||||
@Version
|
||||
private Integer versions;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.volvo.ai.analytic.center.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.volvo.common.core.base.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@Data
|
||||
@TableName("tt_ai_analysis_request_logs")
|
||||
public class AiAnalysisRequestLogs extends BaseEntity {
|
||||
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@TableField("ai_analysis_request_id")
|
||||
private String aiAnalysisRequestId;
|
||||
|
||||
@TableField("ai_analysis_request_type")
|
||||
private String aiAnalysisRequestType;
|
||||
|
||||
@TableField("business_request")
|
||||
private String businessRequest; // JSON 字符串
|
||||
|
||||
@TableField("dify_request")
|
||||
private String difyRequest; // JSON 字符串
|
||||
|
||||
@TableField("business_response")
|
||||
private String businessResponse; // JSON 字符串
|
||||
|
||||
@TableField("quest_status")
|
||||
private String questStatus;
|
||||
|
||||
@TableField("dify_agent_key")
|
||||
private String difyAgentKey;
|
||||
|
||||
@TableField("is_deleted")
|
||||
@TableLogic
|
||||
private Integer isDeleted;
|
||||
|
||||
@TableField("versions")
|
||||
@Version
|
||||
private Integer versions;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user