package com.xxl.job.executor.jobhandler;

import com.xxl.job.core.handler.annotation.XxlJob;
import com.xxl.job.executor.common.service.IRefreshTokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ByteDanceRefreshTokenJob {

    @Autowired
    private IRefreshTokenService refreshTokenService;

    /**
     * 刷新token
     * @throws Exception
     */
    @XxlJob("byteDanceRefreshTokenJob")
    public void execute() throws Exception {
        refreshTokenService.byteDanceRefresh(null);
    }
}
