package com.fdkankan.download.schedule;

import com.fdkankan.download.service.ISceneDownLoadService;
import com.fdkankan.redis.util.RedisUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ScheduleJob {

    @Autowired
    RedisUtil redisUtil;
    @Autowired
    ISceneDownLoadService sceneDownLoadService;

    @Scheduled(cron = "0/5 * * * * ? ")
    public void job4SceneDownload() throws Exception {
        log.info("场景下载定时任务执行。。。。");
        sceneDownLoadService.process();
    }

}
