|
@@ -2,6 +2,7 @@ package com.fs.app.controller.course;
|
|
|
|
|
|
|
|
|
|
|
|
+import com.fs.app.annotation.UserOperationLog;
|
|
|
import com.fs.app.controller.AppBaseController;
|
|
|
import com.fs.common.annotation.RepeatSubmit;
|
|
|
import com.fs.common.core.domain.R;
|
|
@@ -16,6 +17,7 @@ import com.fs.course.param.newfs.FsUserCourseVideoUParam;
|
|
|
import com.fs.course.service.*;
|
|
|
import com.fs.course.vo.FsUserCourseVideoH5VO;
|
|
|
import com.fs.course.vo.newfs.FsUserCourseVideoLinkDetailsVO;
|
|
|
+import com.fs.his.enums.FsUserOperationEnum;
|
|
|
import com.fs.his.service.IFsUserService;
|
|
|
import com.fs.system.service.ISysConfigService;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -68,6 +70,7 @@ public class CourseFsUserController extends AppBaseController {
|
|
|
@Login
|
|
|
@ApiOperation("H5课程详情")
|
|
|
@GetMapping("/videoDetails")
|
|
|
+ @UserOperationLog(operationType = FsUserOperationEnum.STUDY)
|
|
|
public ResponseResult<FsUserCourseVideoLinkDetailsVO> getCourseVideoDetails(FsUserCourseVideoLinkParam param) {
|
|
|
param.setFsUserId(Long.parseLong(getUserId()));
|
|
|
return courseVideoService.getLinkCourseVideoDetails(param);
|
|
@@ -99,6 +102,7 @@ public class CourseFsUserController extends AppBaseController {
|
|
|
|
|
|
@ApiOperation("答题")
|
|
|
@PostMapping("/courseAnswer")
|
|
|
+ @UserOperationLog(operationType = FsUserOperationEnum.ANSWER)
|
|
|
public R courseAnswer(@RequestBody FsCourseQuestionAnswerUParam param){
|
|
|
param.setUserId(Long.parseLong(getUserId()));
|
|
|
logger.info("zyp \n【答题】:{}",param.getQuestions());
|
|
@@ -110,6 +114,7 @@ public class CourseFsUserController extends AppBaseController {
|
|
|
|
|
|
@ApiOperation("发放奖励")
|
|
|
@PostMapping("/sendReward")
|
|
|
+ @UserOperationLog(operationType = FsUserOperationEnum.SENDREWARD)
|
|
|
@RepeatSubmit
|
|
|
public R sendReward(@RequestBody FsCourseSendRewardUParam param)
|
|
|
{
|