|
@@ -6,16 +6,13 @@ import cn.com.ctop.manage.modules.edu.mapper.EduLessonMapper;
|
|
|
import cn.com.ctop.manage.modules.edu.service.IEduLessonService;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.fasterxml.jackson.databind.JsonNode;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
-import me.chanjar.weixin.common.util.DataUtils;
|
|
|
import org.jeecg.common.util.DateUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
-import org.springframework.util.unit.DataUnit;
|
|
|
-
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Iterator;
|
|
|
import java.util.List;
|
|
@@ -31,12 +28,18 @@ import java.util.Map;
|
|
|
public class EduLessonServiceImpl extends ServiceImpl<EduLessonMapper, EduLesson> implements IEduLessonService {
|
|
|
@Autowired
|
|
|
private EduLessonMapper eduLessonMapper;
|
|
|
+
|
|
|
+ @Override
|
|
|
public List<String> getTitleList(String media){
|
|
|
return eduLessonMapper.getTitleList(media);
|
|
|
}
|
|
|
- public List<String> getTopicList(String media,String title){
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<String> getTopicList(String media, String title) {
|
|
|
return eduLessonMapper.getTopicList(media,title);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
public void getKuaishouEduLesson(String url){
|
|
|
Map<String,String> headMap = new HashMap<>();
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
@@ -92,6 +95,7 @@ public class EduLessonServiceImpl extends ServiceImpl<EduLessonMapper, EduLesson
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public void getBytedanceEduLesson(String url){
|
|
|
// String url = "https://school.oceanengine.com/academy/v2/course/learning_path_json/1/";
|
|
|
Map<String,String> headMap = new HashMap<>();
|