package org.jeecg.modules.dnc.dto; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Builder; import lombok.Data; import org.jeecg.modules.dnc.entity.*; @Data @Builder @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) public class TransferPackage { public enum DataType { PROCESS, WORKSTEP } private final DataType dataType; private final DocRelative docRelative; private final ProcessTraceChain traceChain; @JsonCreator public TransferPackage( @JsonProperty("dataType") DataType dataType, @JsonProperty("docRelative") DocRelative docRelative, @JsonProperty("traceChain") ProcessTraceChain traceChain ) { this.dataType = dataType; this.docRelative = docRelative; this.traceChain = traceChain; } }