package com.zsElectric.boot.common.util.electric;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE, setterVisibility = JsonAutoDetect.Visibility.NONE)
public class QueryTokenResponseData implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 运营商ID
     */
    @JsonProperty("OperatorID")
    private String OperatorID;

    /**
     * 响应状态 0-成功,1-失败
     */
    @JsonProperty("SuccStat")
    private Integer SuccStat;

    /**
     * 访问令牌
     */
    @JsonProperty("AccessToken")
    private String AccessToken;

    /**
     * 令牌有效期,单位秒
     */
    @JsonProperty("TokenAvailableTime")
    private Integer TokenAvailableTime;

    /**
     * 错误原因 0-无,1-OperatorID无效
     */
    @JsonProperty("FailReason")
    private Integer FailReason;

}
