修改AI结果查询

This commit is contained in:
zren25
2025-04-16 17:51:56 +08:00
parent 0f9e21e86c
commit c34149925d
11 changed files with 201 additions and 95 deletions

View File

@@ -0,0 +1,27 @@
package com.volvo.ai.analytic.center.dto.req;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
*
* @ClassName: AnalysisRequest
* @author: renzhen
* @Description: Ai查询请求参数
* @date: 2025-04-15 13:39
*/
@Data
public class AnalysisQueryReq {
private Object data;
// aiId
@NotNull(message = "aiAnalysisRequestId不能为空")
private String aiAnalysisRequestId;
// 是否重试:默认:否
private String retryAnalyze;
}

View File

@@ -1,8 +1,12 @@
package com.volvo.ai.analytic.center.dto.req;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import org.springframework.validation.annotation.Validated;
import lombok.NoArgsConstructor;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
@@ -13,21 +17,27 @@ import javax.validation.constraints.NotNull;
* @date: 2025-04-15 13:39
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AnalysisReq {
// 请求的所有参数
@Valid
@NotNull(message = "请求语料不能为空")
private Object data;
// 回调地址
@NotNull(message = "回调地址不能为空")
@Valid
@NotBlank(message = "回调地址不能为空")
private String callbackUrl;
// aiId
private String aiAnalysisRequestId;
// 业务类型
@NotNull(message = "业务类型不能为空")
@Valid
@NotBlank(message = "业务类型不能为空")
private String aiAnalysisRequestType;
}

View File

@@ -43,13 +43,13 @@ public class AiAnalysisRequestLogs {
@TableField("dify_agent_key")
private String difyAgentKey;
@TableField("workflowRunId")
@TableField("workflow_run_id")
private String workflowRunId;
@TableField("workflowAppId")
@TableField("workflow_app_id")
private String workflowAppId;
@TableField("workUserId")
@TableField("work_user_id")
private String workUserId;
@TableField("callback_url")

View File

@@ -36,9 +36,6 @@ public class TcBusinessType {
@TableField("workflow_user")
private String workflowUser;
@TableField("max_retry_count")
private Integer maxRetryCount;
@TableField("is_deleted")
@TableLogic
private Integer isDeleted;

View File

@@ -21,7 +21,7 @@ public interface DiFyFeign {
@PostMapping(value = "/v1/files/upload" , consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
JSONObject fileUpload(@RequestHeader(value = "Authorization") String authorization, @RequestPart("file") MultipartFile file);
@PostMapping(value = "/v1/workflows/run/:{workflowRunId}" , consumes = MediaType.APPLICATION_JSON_VALUE
@GetMapping(value = "/v1/workflows/run/{workflowRunId}" , consumes = MediaType.APPLICATION_JSON_VALUE
, produces = MediaType.APPLICATION_JSON_VALUE)
JSONObject queryWorkFlowById(@RequestHeader(value = "Authorization") String authorization, @PathVariable("workflowRunId") String workflowRunId);
}