|
@@ -53,19 +53,6 @@ public class FsUserCourseVideoController {
|
|
|
@Autowired
|
|
|
private IQwExternalContactService qwExternalContactService;
|
|
|
|
|
|
- @GetMapping("/pageList")
|
|
|
- @ApiOperation("课程分页列表")
|
|
|
- public ResponseResult<PageInfo<FsUserCourseVideoPageListVO>> list(UserCourseVideoPageParam param) {
|
|
|
- QwUser qwUser = qwUserService.getByQwUserIdAndCorId(param.getQwUserId(), param.getCorpId());
|
|
|
- if (qwUser==null||qwUser.getCompanyId()==null){
|
|
|
- return ResponseResult.fail(500,"无权限");
|
|
|
- }
|
|
|
- PageHelper.startPage(param.getPageNum(), param.getPageSize());
|
|
|
- param.setCompanyId(qwUser.getCompanyId());
|
|
|
- List<FsUserCourseVideoPageListVO> list = fsUserCourseVideoService.pageListCourseVideo(param);
|
|
|
- PageInfo<FsUserCourseVideoPageListVO> pageInfo = new PageInfo<>(list);
|
|
|
- return ResponseResult.ok(pageInfo);
|
|
|
- }
|
|
|
|
|
|
@ApiOperation("课程视频详情")
|
|
|
@GetMapping(value = "/videoDetails")
|
|
@@ -73,34 +60,6 @@ public class FsUserCourseVideoController {
|
|
|
return fsUserCourseVideoService.getVideoDetails(videoId);
|
|
|
}
|
|
|
|
|
|
- @GetMapping("/courseList")
|
|
|
- @ApiOperation("获取课程下拉列表")
|
|
|
- public ResponseResult<PageInfo<FsUserCourseListVO>> getAllCourseList(FsUserCourseListParam param) {
|
|
|
- QwUser qwUser = qwUserService.getByQwUserIdAndCorId(param.getQwUserId(), param.getCorpId());
|
|
|
- if (qwUser==null||qwUser.getCompanyId()==null){
|
|
|
- return ResponseResult.fail(500,"无权限");
|
|
|
- }
|
|
|
- PageHelper.startPage(param.getPageNum(), param.getPageSize());
|
|
|
- param.setCompanyId(qwUser.getCompanyId());
|
|
|
- List<FsUserCourseListVO> fsUserCourseList = fsUserCourseService.getFsUserCourseList(param);
|
|
|
- PageInfo<FsUserCourseListVO> pageInfo = new PageInfo<>(fsUserCourseList);
|
|
|
- return ResponseResult.ok(pageInfo);
|
|
|
- }
|
|
|
-
|
|
|
- @GetMapping("/videoList")
|
|
|
- @ApiOperation("获取视频下拉列表")
|
|
|
- public ResponseResult<PageInfo<FsUserVideoListVO>> getAllVideoList(UserCourseVideoPageParam param) {
|
|
|
- QwUser qwUser = qwUserService.getByQwUserIdAndCorId(param.getQwUserId(), param.getCorpId());
|
|
|
- if (qwUser==null||qwUser.getCompanyId()==null){
|
|
|
- return ResponseResult.fail(500,"无权限");
|
|
|
- }
|
|
|
- PageHelper.startPage(param.getPageNum(), param.getPageSize());
|
|
|
- param.setCompanyId(qwUser.getCompanyId());
|
|
|
- List<FsUserVideoListVO> listCourseVideo = fsUserCourseVideoService.getListCourseVideo(param);
|
|
|
- PageInfo<FsUserVideoListVO> result = new PageInfo<>(listCourseVideo);
|
|
|
- return ResponseResult.ok(result);
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
@PostMapping("/getFsCourseListBySidebar")
|
|
|
@ApiOperation("获取视频课程下拉列表 侧边栏")
|
|
@@ -193,6 +152,63 @@ public class FsUserCourseVideoController {
|
|
|
@Autowired
|
|
|
private IFsCourseLinkService courseLinkService;
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建 发客户小程序
|
|
|
+ */
|
|
|
+
|
|
|
+ @RepeatSubmit
|
|
|
+ @PostMapping("/createMiniLink")
|
|
|
+ public R createMiniLink(@RequestBody FsCourseLinkMiniParam param) {
|
|
|
+
|
|
|
+ if (param.getCourseId()==null){
|
|
|
+ return R.error("课程id不能为空");
|
|
|
+ }
|
|
|
+ if (param.getVideoId()==null){
|
|
|
+ return R.error("视频id不能为空");
|
|
|
+ }
|
|
|
+ if (StringUtil.strIsNullOrEmpty(param.getQwUserId())){
|
|
|
+ return R.error("用户id不能为空");
|
|
|
+ }
|
|
|
+ if (StringUtil.strIsNullOrEmpty(param.getCorpId())){
|
|
|
+ return R.error("企业id不能为空");
|
|
|
+ }
|
|
|
+
|
|
|
+ if (param.getExternalUserId()==null){
|
|
|
+ return R.error("客户id不能为空");
|
|
|
+ }
|
|
|
+
|
|
|
+ return fsUserCourseVideoService.createMiniLink(param);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建发卡片
|
|
|
+ */
|
|
|
+ @RepeatSubmit
|
|
|
+ @PostMapping("/createCartLink")
|
|
|
+ public R createCartLink(@RequestBody FsCourseLinkMiniParam param) {
|
|
|
+
|
|
|
+ if (param.getCourseId()==null){
|
|
|
+ return R.error("课程id不能为空");
|
|
|
+ }
|
|
|
+ if (param.getVideoId()==null){
|
|
|
+ return R.error("视频id不能为空");
|
|
|
+ }
|
|
|
+ if (StringUtil.strIsNullOrEmpty(param.getQwUserId())){
|
|
|
+ return R.error("用户id不能为空");
|
|
|
+ }
|
|
|
+ if (StringUtil.strIsNullOrEmpty(param.getCorpId())){
|
|
|
+ return R.error("企业id不能为空");
|
|
|
+ }
|
|
|
+
|
|
|
+ if (param.getExternalUserId()==null){
|
|
|
+ return R.error("客户id不能为空");
|
|
|
+ }
|
|
|
+
|
|
|
+ return fsUserCourseVideoService.createCartLink(param);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping("/createRoomLink")
|
|
|
@ApiOperation("创建发群链接")
|
|
|
public R createRoomLink(FsCourseLinkRoomParam param) {
|