package com.eactive.eai.rms.onl.loader.intf.deploy;

import com.eactive.eai.data.entity.onl.submessage.SubMessageInfo;
import com.eactive.eai.rms.onl.loader.service.DeployResource;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import edu.emory.mathcs.backport.java.util.Arrays;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class SubMessageInfoDeploy extends DeployResource<SubMessageInfo> {

    @Override
    public SubMessageInfo probeForExample() {
        SubMessageInfo probe = new SubMessageInfo();
        probe.setBzwksvckeyname(this.bzwksvckeyname);
        return probe;
    }

    @Override
    public List<String> exactMatchFields() {
        return Arrays.asList(new String[]{
                "bzwksvckeyname"
        });
    }

    @JsonProperty("BusinessServiceKey")
    private String bzwksvckeyname;
    
    /*수정상태구분코드*/
    @JsonProperty("StatusCode")
    private String modfimgtstusdstcd;

    /*최종수정시간*/
    @JsonProperty("LastDateTime")
    @JsonFormat(pattern = "yyyyMMddHHmmssSSS")
    private LocalDateTime eailastamndyms;

    @JsonProperty("subMessageItems")
    private List<SubMessageItemDeploy> subMessageItemDeploys;

}
