|
|
@@ -1,10 +1,17 @@
|
|
|
package com.etotem.cfc.dto;
|
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import lombok.Data;
|
|
|
import java.util.List;
|
|
|
|
|
|
+/**
|
|
|
+ * 五行溯源建议 VO。
|
|
|
+ * 兼容 AI 返回的字段:生我者(upstream 系)、克我者(restrainer 系)与行动建议(action)。
|
|
|
+ * 未知字段忽略,避免 AI 输出新增字段导致整体解析失败。
|
|
|
+ */
|
|
|
@Data
|
|
|
+@JsonIgnoreProperties(ignoreUnknown = true)
|
|
|
public class WuxingSourcingAdviceVO {
|
|
|
|
|
|
private String dimension;
|
|
|
@@ -30,4 +37,31 @@ public class WuxingSourcingAdviceVO {
|
|
|
/** 是否使用降级静态建议 */
|
|
|
@JsonProperty("fallbackUsed")
|
|
|
private Boolean fallbackUsed;
|
|
|
+
|
|
|
+ // ===== AI 五行生克链字段(prompt 输出,VO 同步适配) =====
|
|
|
+
|
|
|
+ /** 生我者(上游)维度 */
|
|
|
+ private String upstreamDimension;
|
|
|
+ /** 生我者(上游)名称 */
|
|
|
+ private String upstreamName;
|
|
|
+ /** 生我者(上游)元素 */
|
|
|
+ private String upstreamElement;
|
|
|
+ /** 生我者(上游)颜色 */
|
|
|
+ private String upstreamColor;
|
|
|
+ /** 生我者(上游)理由 */
|
|
|
+ private String upstreamReason;
|
|
|
+
|
|
|
+ /** 克我者(制约)维度 */
|
|
|
+ private String restrainerDimension;
|
|
|
+ /** 克我者(制约)名称 */
|
|
|
+ private String restrainerName;
|
|
|
+ /** 克我者(制约)元素 */
|
|
|
+ private String restrainerElement;
|
|
|
+ /** 克我者(制约)颜色 */
|
|
|
+ private String restrainerColor;
|
|
|
+ /** 克我者(制约)理由 */
|
|
|
+ private String restrainerReason;
|
|
|
+
|
|
|
+ /** 具体行动建议 */
|
|
|
+ private String action;
|
|
|
}
|