|
@@ -0,0 +1,38 @@
|
|
|
+package com.fs.app.controller;
|
|
|
+
|
|
|
+import com.fs.app.annotation.Login;
|
|
|
+import com.fs.common.core.controller.BaseController;
|
|
|
+import com.fs.common.core.domain.ResponseResult;
|
|
|
+import com.fs.course.param.newfs.UserCourseVideoPageParam;
|
|
|
+import com.fs.course.service.IFsUserCourseVideoService;
|
|
|
+import com.fs.course.vo.newfs.FsUserCourseVideoPageListVO;
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
+import com.github.pagehelper.PageInfo;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+
|
|
|
+@Api("课程库相关接口")
|
|
|
+@RestController
|
|
|
+@RequestMapping("/app/fs/course")
|
|
|
+@Slf4j
|
|
|
+public class FsUserCourseVideoController extends BaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IFsUserCourseVideoService fsUserCourseVideoService;
|
|
|
+
|
|
|
+ @GetMapping("/pageList")
|
|
|
+ @ApiOperation("课程分页列表")
|
|
|
+ public ResponseResult<PageInfo<FsUserCourseVideoPageListVO>> list(UserCourseVideoPageParam param) {
|
|
|
+ PageHelper.startPage(param.getPageNum(),param.getPageSize());
|
|
|
+ List<FsUserCourseVideoPageListVO> list = fsUserCourseVideoService.pageListCourseVideo(param);
|
|
|
+ PageInfo<FsUserCourseVideoPageListVO> pageInfo = new PageInfo<>(list);
|
|
|
+ return ResponseResult.ok(pageInfo);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|