package cn.iocoder.yudao.module.mdm.controller.admin.agent.vo;
|
|
import lombok.Builder;
|
import lombok.Data;
|
|
import java.util.List;
|
|
/**
|
* 智能体物料导入预检结果。canCommit=false 时提交必然被拒绝。
|
*/
|
@Data
|
@Builder
|
public class MdmAgentImportPreflightRespVO {
|
|
private String preflightHash;
|
private Source source;
|
private Authorization authorization;
|
private Policy 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 Authorization {
|
private Long userId;
|
private Long tenantId;
|
private String permission;
|
private String policyRevision;
|
}
|
|
@Data
|
@Builder
|
public static class Policy {
|
private Boolean updateAllowed;
|
private Boolean mesSyncAllowed;
|
private Integer maxRows;
|
}
|
|
@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;
|
private String code;
|
private String name;
|
private String action;
|
private Resolved resolved;
|
private List<Issue> blockers;
|
private List<Issue> warnings;
|
private Long targetItemId;
|
}
|
|
@Data
|
@Builder
|
public static class Resolved {
|
private Long categoryId;
|
private String categoryName;
|
private Long unitMeasureId;
|
private String unitMeasureName;
|
}
|
|
@Data
|
@Builder
|
public static class Issue {
|
private String code;
|
private String field;
|
private String message;
|
private Boolean retryable;
|
}
|
}
|