|
@@ -93,61 +93,6 @@ public class FsUserCourseVideoController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- @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不能为空");
|
|
|
|
- }
|
|
|
|
- if (param.getType()==null || param.getType()==1){
|
|
|
|
- return fsUserCourseVideoService.createCartLink(param);
|
|
|
|
- }else {
|
|
|
|
- return fsUserCourseVideoService.createMiniLink(param);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IFsCourseLinkService courseLinkService;
|
|
private IFsCourseLinkService courseLinkService;
|