云
16 小时以前 d9a5ba1de2fce6bd8c50dace505e4bf7864043ba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package cn.iocoder.yudao.module.system.api.agent.imports;
 
import lombok.Builder;
import lombok.Data;
 
import java.util.List;
import java.util.Map;
 
/**
 * 通用业务导入预检响应,字段与 Python 端 GenericPreflightResponse 对齐。
 */
@Data
@Builder
public class AgentImportPreflightRespVO {
 
    private String moduleId;
    private String preflightHash;
    private Source source;
    private Map<String, Object> policy;
    private Summary summary;
    private Boolean canCommit;
    private List<String> sideEffects;
    private List<Row> rows;
    private List<Issue> blockingItems;
 
    @Data
    @Builder
    public static class Source {
        private Long attachmentId;
        private Long sessionId;
        private String sourceSha256;
        private String proposalRevision;
    }
 
    @Data
    @Builder
    public static class Summary {
        private Integer total;
        private Integer create;
        private Integer skip;
        private Integer blocked;
    }
 
    @Data
    @Builder
    public static class Row {
        private String candidateId;
        private Integer rowNo;
        /** CREATE / SKIP / BLOCKED */
        private String action;
        private Map<String, Object> resolved;
        private List<Issue> blockers;
        private List<Issue> warnings;
        private Long targetId;
    }
 
    @Data
    @Builder
    public static class Issue {
        private String code;
        private String field;
        private String message;
        private Boolean retryable;
    }
}