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

import cn.com.ctop.manage.modules.edu.entity.EduLesson;
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 KuaishouEduJob implements Job {
    @Autowired
    private IEduLessonService eduLessonService;
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        String url = "https://daxue.kuaishou.com/api/commercial/path/course/list/";
        for(int i=9;i<=11;i++){
            eduLessonService.getKuaishouEduLesson(url+i);
        }

    }
}
