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 KuaiShouRefreshAgentTokenJob {
    @Autowired
    private IRefreshTokenService refreshTokenService;

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

