10 changed files with 263 additions and 35 deletions
@ -0,0 +1,72 @@ |
|||||
|
package com.project.interaction.domain.dto; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Builder; |
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 算法服务 - 生成题目请求 DTO |
||||
|
*/ |
||||
|
@Data |
||||
|
@Builder |
||||
|
@NoArgsConstructor |
||||
|
@AllArgsConstructor |
||||
|
public class GenerateQuestionRequestDTO { |
||||
|
|
||||
|
/** |
||||
|
* 聚类信息 |
||||
|
*/ |
||||
|
@JsonProperty("cluster") |
||||
|
private ClusterInfo cluster; |
||||
|
|
||||
|
/** |
||||
|
* 生成题目数量 |
||||
|
*/ |
||||
|
@JsonProperty("num_questions") |
||||
|
private Integer numQuestions; |
||||
|
|
||||
|
/** |
||||
|
* 题目类型列表 |
||||
|
*/ |
||||
|
@JsonProperty("question_types") |
||||
|
private List<String> questionTypes; |
||||
|
|
||||
|
/** |
||||
|
* 聚类信息内部类 |
||||
|
*/ |
||||
|
@Data |
||||
|
@Builder |
||||
|
@NoArgsConstructor |
||||
|
@AllArgsConstructor |
||||
|
public static class ClusterInfo { |
||||
|
|
||||
|
/** |
||||
|
* 知识点簇ID |
||||
|
*/ |
||||
|
@JsonProperty("cluster_id") |
||||
|
private Long clusterId; |
||||
|
|
||||
|
/** |
||||
|
* 考试任务ID |
||||
|
*/ |
||||
|
@JsonProperty("task_id") |
||||
|
private Long taskId; |
||||
|
|
||||
|
/** |
||||
|
* 知识点内容数组 |
||||
|
*/ |
||||
|
@JsonProperty("source_text") |
||||
|
private List<String> sourceText; |
||||
|
|
||||
|
/** |
||||
|
* 知识点ID集合 |
||||
|
*/ |
||||
|
@JsonProperty("source_id") |
||||
|
private List<Long> sourceId; |
||||
|
} |
||||
|
} |
||||
|
|
||||
@ -0,0 +1,36 @@ |
|||||
|
package com.project.interaction.domain.dto; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Builder; |
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
|
||||
|
/** |
||||
|
* 算法服务 - 生成题目响应 DTO |
||||
|
*/ |
||||
|
@Data |
||||
|
@Builder |
||||
|
@NoArgsConstructor |
||||
|
@AllArgsConstructor |
||||
|
public class GenerateQuestionResponseDTO { |
||||
|
|
||||
|
/** |
||||
|
* 任务ID(算法服务返回的,用于后续查询结果) |
||||
|
*/ |
||||
|
@JsonProperty("task_id") |
||||
|
private String taskId; |
||||
|
|
||||
|
/** |
||||
|
* 任务状态:pending、processing、completed、failed |
||||
|
*/ |
||||
|
@JsonProperty("status") |
||||
|
private String status; |
||||
|
|
||||
|
/** |
||||
|
* 返回消息 |
||||
|
*/ |
||||
|
@JsonProperty("message") |
||||
|
private String message; |
||||
|
} |
||||
|
|
||||
Loading…
Reference in new issue