package cn.com.ctop.job.kuaishou.handler;

import cn.com.ctop.common.module.service.IRefreshTokenService;
import com.xxl.job.core.handler.annotation.XxlJob;
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();
    }
}

