package cn.com.ctop.manage.modules.edu.job;

import cn.com.ctop.manage.modules.edu.service.IEduLessonService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

public class BytedanceEduJob implements Job {
    @Autowired
    private IEduLessonService eduLessonService;
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        String url = "https://school.oceanengine.com/academy/v2/course/learning_path_json/";
        for(int i = 1; i <=7;i++){
            eduLessonService.getBytedanceEduLesson(url+i);
        }

    }
}
