package cn.common.common.interaction.wx;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.*;

/**
 * @author Singer create by Singer email:singer-coder@qq.com
 * @packageName cn.common.common.interaction.wx
 * @Description: 微信的AccessToken
 * @date 2021-02-26
 */
@Data
public class WxAccessToken implements Serializable {


    private static final long serialVersionUID = -3460685024355362570L;

    /**
     * 拿到到的凭证
     */
    @JSONField(name = "access_token")
    private String accessToken;

    /**
     * 凭证有效时间，单位：秒。目前是7200秒之内的值。
     */
    @JSONField(name = "access_token")
    private Integer expiresIn;

    /**
     * 错误码
     */
    @JSONField(name = "errcode")
    private Integer errCode;

    /**
     * 错误信息
     */
    @JSONField(name = "errmsg")
    private String errMsg;

}
