|
|
|
@ -58,7 +58,7 @@ public class EvaluationRecordController implements EvaluationRecordControllerApi |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@PostMapping("/previous") |
|
|
|
|
@GetMapping("/previous") |
|
|
|
|
public R previousQuestion(@RequestParam("evaluationRecordId") Integer evaluationRecordId, |
|
|
|
|
@RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo, |
|
|
|
|
@RequestParam(value = "userAnswer", required = false) String userAnswer) throws ExecutionException, InterruptedException { |
|
|
|
@ -67,7 +67,7 @@ public class EvaluationRecordController implements EvaluationRecordControllerApi |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@PostMapping("/next") |
|
|
|
|
@GetMapping("/next") |
|
|
|
|
public R nextQuestion(@RequestParam("evaluationRecordId") Integer evaluationRecordId, |
|
|
|
|
@RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo, |
|
|
|
|
@RequestParam(value = "userAnswer", required = false) String userAnswer) throws ExecutionException, InterruptedException { |
|
|
|
@ -83,7 +83,7 @@ public class EvaluationRecordController implements EvaluationRecordControllerApi |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@PostMapping("/submit") |
|
|
|
|
@GetMapping("/submit") |
|
|
|
|
public R submitEvaluation(@RequestParam("evaluationRecordId") Integer evaluationRecordId, |
|
|
|
|
@RequestParam("currentQuestionSortNo") Integer currentQuestionSortNo, |
|
|
|
|
@RequestParam(value = "userAnswer", required = false) String userAnswer, |
|
|
|
@ -99,6 +99,11 @@ public class EvaluationRecordController implements EvaluationRecordControllerApi |
|
|
|
|
return R.ok().put("data", detailVO); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 查询是否能够开启实验 |
|
|
|
|
* @param userId |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
@GetMapping("/can_experiment") |
|
|
|
|
public R isOpenExperiment(Integer userId) { |
|
|
|
|