package com.muyu.domain;

import lombok.Data;

/**
 * @className: AccessToken  ️✈️
 * @author: Yang 鹏  🦅
 * @date: 2024/9/17 16:49 ⏰
 * @Version: 1.0
 * @description:
 */
@Data
public class AccessToken {


    private String access_token;

    private Long expires_in;

    public void setExpiresTime(Long expiresIn) {
        this.expires_in = System.currentTimeMillis()+expiresIn*1000;
    }

//    public boolean isExpired(Long expiresIn){
//        Long now = System.currentTimeMillis();
//        return now>expiresIn;
//    }
}
