package com.xxl.job.executor.jobhandler;

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

@Component
public class KuaiShouRefreshTokenJob {
    @Autowired
    private IRefreshTokenService refreshTokenService;

    /**
     * 刷新token
     * @throws JobExecutionException
     */
    @XxlJob("kuaiShouRefreshTokenJob")
    public void execute() throws Exception {
        refreshTokenService.getKuaiShouRefresh();
    }
}

