package com.njzscloud.common.wechat.result;

import cn.hutool.core.util.StrUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

@Getter
@Setter
@ToString
@Accessors(chain = true)
public class GetAccessTokenResult {
    private String access_token;
    private Integer expires_in;

    public boolean isSucc() {
        return StrUtil.isNotBlank(access_token) && (expires_in != null && expires_in > 0);
    }
}
