|
@@ -11,13 +11,11 @@ import com.fs.core.utils.OrderCodeUtils;
|
|
|
import com.fs.course.config.CourseConfig;
|
|
|
import com.fs.course.domain.FsCourseQuestionBank;
|
|
|
import com.fs.course.domain.FsCourseWatchLog;
|
|
|
+import com.fs.course.domain.FsUserCourseVideo;
|
|
|
import com.fs.course.param.*;
|
|
|
import com.fs.course.service.*;
|
|
|
import com.fs.course.service.impl.TencentCloudCosService;
|
|
|
-import com.fs.course.vo.FsCourseWatchCommentVO;
|
|
|
-import com.fs.course.vo.FsUserCourseVideoH5DVO;
|
|
|
-import com.fs.course.vo.FsUserCourseVideoH5VO;
|
|
|
-import com.fs.course.vo.FsUserCourseVideoQuestionVO;
|
|
|
+import com.fs.course.vo.*;
|
|
|
import com.fs.his.service.IFsIntegralGoodsService;
|
|
|
import com.fs.sop.domain.QwSop;
|
|
|
import com.fs.sop.service.IQwSopService;
|
|
@@ -71,6 +69,21 @@ public class CourseQwController extends AppBaseController {
|
|
|
@Autowired
|
|
|
private IQwSopService qwSopService;
|
|
|
|
|
|
+ @ApiOperation("查询全部公域的课程")
|
|
|
+ @GetMapping("/getAppletCourse")
|
|
|
+ public R getAppletCourse()
|
|
|
+ {
|
|
|
+ List<FsUserCourseVideoAppletVO> course = courseService.selectFsUserCourseVideoApplet();
|
|
|
+ if(course != null && !course.isEmpty()){
|
|
|
+ for (FsUserCourseVideoAppletVO appletVO : course) {
|
|
|
+ List<FsUserCourseVideoAppletVO.FsUserCourseVideo> courseVideos = courseService.selectFsUserCourseVideoAppletByCourseId(appletVO.getCourseId());
|
|
|
+ appletVO.setFsUserCourseVideoList(courseVideos);
|
|
|
+ appletVO.setVideoTotal((long) courseVideos.size());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return R.ok().put("data",course);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@ApiOperation("h5课程简介")
|
|
|
@GetMapping("/getH5CourseByVideoId")
|