package com.xhpc.evcs.dto;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE,
        setterVisibility = JsonAutoDetect.Visibility.NONE, creatorVisibility = JsonAutoDetect.Visibility.NONE)
//定义该对象转换后的json对象的键值对顺序
@JsonPropertyOrder({
        "EquipBizSeq",
        "ConnectorID",
        "SuccStat",
        "FailReason",
        "SumPeriod",
        "PolicyInfos",
})
public class EquipBizResponse {

    @JsonProperty("EquipBizSeq")
    String equipBizSeq;
    @JsonProperty("ConnectorID")
    String connectorId;

    /**
     * 操作结果
     */
    //JsonProperty的作用是将该字段，按照所指定的key转换成json键值对。
    @JsonProperty("SuccStat")
    int succStat;

    @JsonProperty("FailReason")
    int failReason;

    @JsonProperty("SumPeriod")
    int sumPeriod;

    @JsonProperty("PolicyInfos")
    PolicyInfos[] policyInfos;

}
