|
@@ -2,10 +2,12 @@ package com.keao.edu.controller;
|
|
|
|
|
|
import com.keao.edu.common.controller.BaseController;
|
|
|
import com.keao.edu.common.entity.HttpResponseResult;
|
|
|
+import com.keao.edu.common.exception.BizException;
|
|
|
import com.keao.edu.user.dto.StuRecordDetailDto;
|
|
|
import com.keao.edu.user.service.ExamRoomStudentRelationService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -36,6 +38,9 @@ public class ExamRoomStudentRelationController extends BaseController {
|
|
|
@ApiOperation("学生端完成录播")
|
|
|
@PostMapping(value = "/stuEndRecord")
|
|
|
public HttpResponseResult stuEndRecord(Long examRegistrationId,String videoUrl) {
|
|
|
+ if(StringUtils.isEmpty(videoUrl)){
|
|
|
+ throw new BizException("请提交录制文件");
|
|
|
+ }
|
|
|
examRoomStudentRelationService.stuEndRecord(examRegistrationId,videoUrl);
|
|
|
return succeed();
|
|
|
}
|