|
@@ -139,5 +139,19 @@ public class ExtractConfigCloudServiceProvider implements ExtractConfigCloudServ
|
|
|
resp.setAnswerList(list);
|
|
|
return resp;
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "根据试题id集合获取试题集合")
|
|
|
+ @PostMapping("getBaseQuestion")
|
|
|
+ @Override
|
|
|
+ public GetQuestionResp getBaseQuestion(@RequestBody GetQuestionReq req) {
|
|
|
+ String id = req.getQuestionId();
|
|
|
+ if(StringUtils.isBlank(id)){
|
|
|
+ throw new StatusException("Q-010149", "questionId is null");
|
|
|
+ }
|
|
|
+ DefaultQuestion defaultQuestion = extractConfigExamService.getDefaultQuestion(null, null, null, id);
|
|
|
+ GetQuestionResp resp = new GetQuestionResp();
|
|
|
+ resp.setDefaultQuestion(defaultQuestion);
|
|
|
+ return resp;
|
|
|
+ }
|
|
|
|
|
|
}
|