|
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.qmth.themis.business.annotation.ApiJsonObject;
|
|
import com.qmth.themis.business.annotation.ApiJsonObject;
|
|
import com.qmth.themis.business.annotation.ApiJsonProperty;
|
|
import com.qmth.themis.business.annotation.ApiJsonProperty;
|
|
|
|
+import com.qmth.themis.business.annotation.RedisLimitAnnotation;
|
|
import com.qmth.themis.business.bean.admin.*;
|
|
import com.qmth.themis.business.bean.admin.*;
|
|
import com.qmth.themis.business.cache.ExamRecordCacheUtil;
|
|
import com.qmth.themis.business.cache.ExamRecordCacheUtil;
|
|
import com.qmth.themis.business.cache.bean.ExamActivityCacheBean;
|
|
import com.qmth.themis.business.cache.bean.ExamActivityCacheBean;
|
|
@@ -94,6 +95,7 @@ public class TIeInvigilateController {
|
|
@ApiOperation(value = "实时监控台视频列表接口")
|
|
@ApiOperation(value = "实时监控台视频列表接口")
|
|
@RequestMapping(value = "/list/video", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/list/video", method = RequestMethod.POST)
|
|
@ApiResponses({@ApiResponse(code = 200, message = "监考监控信息", response = InvigilateListVideoBean.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "监考监控信息", response = InvigilateListVideoBean.class)})
|
|
|
|
+ @RedisLimitAnnotation(key = "listVideo", period = 1, count = 1)
|
|
public Result listVideo(@ApiParam(value = "考试批次id", required = false) @RequestParam(required = false) Long examId,
|
|
public Result listVideo(@ApiParam(value = "考试批次id", required = false) @RequestParam(required = false) Long examId,
|
|
@ApiParam(value = "考试场次id", required = false) @RequestParam(required = false) Long examActivityId,
|
|
@ApiParam(value = "考试场次id", required = false) @RequestParam(required = false) Long examActivityId,
|
|
@ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
|
|
@ApiParam(value = "虚拟考场代码", required = false) @RequestParam(required = false) String roomCode,
|
|
@@ -182,6 +184,7 @@ public class TIeInvigilateController {
|
|
@ApiOperation(value = "实时监控台视频随机列表接口")
|
|
@ApiOperation(value = "实时监控台视频随机列表接口")
|
|
@RequestMapping(value = "/list/video/random", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/list/video/random", method = RequestMethod.POST)
|
|
@ApiResponses({@ApiResponse(code = 200, message = "监考监控信息", response = InvigilateListVideoBean.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "监考监控信息", response = InvigilateListVideoBean.class)})
|
|
|
|
+ @RedisLimitAnnotation(key = "listVideoRandom", period = 1, count = 1)
|
|
public Result listVideoRandom(@ApiParam(value = "考试批次id", required = false) @RequestParam(required = false) Long examId, @ApiParam(value = "随机数", required = true) @RequestParam Integer randomNum) {
|
|
public Result listVideoRandom(@ApiParam(value = "考试批次id", required = false) @RequestParam(required = false) Long examId, @ApiParam(value = "随机数", required = true) @RequestParam Integer randomNum) {
|
|
if (Objects.isNull(randomNum) || Objects.equals(randomNum, "")) {
|
|
if (Objects.isNull(randomNum) || Objects.equals(randomNum, "")) {
|
|
throw new BusinessException("随机数不能为空");
|
|
throw new BusinessException("随机数不能为空");
|