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

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


    /**
     * 快手刷新token
     * @throws JobExecutionException
     */
    @XxlJob("adqRefreshTokenJob")
    public void adqRefreshTokenJob() throws Exception {
        refreshTokenService.adqRefreshTokenJob();
    }

}

