|
@@ -30,8 +30,12 @@ public class AiController {
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping("/auto_generate_question")
|
|
@RequestMapping("/auto_generate_question")
|
|
- public Object autoGenerateQuestion(@RequestParam String accessKey) {
|
|
|
|
- Map<String, Object> param = new HashMap<>();
|
|
|
|
|
|
+ public Object autoGenerateQuestion(@RequestParam String accessKey, @RequestParam String subjectName,
|
|
|
|
+ @RequestParam String questionType) {
|
|
|
|
+ Map<String, Object> param = new HashMap<String, Object>() {{
|
|
|
|
+ put("subjectName", subjectName);
|
|
|
|
+ put("questionType", questionType);
|
|
|
|
+ }};
|
|
return aiService.autoGenerateQuestion(param, SignatureInfo.secret(accessKey, ""));
|
|
return aiService.autoGenerateQuestion(param, SignatureInfo.secret(accessKey, ""));
|
|
}
|
|
}
|
|
|
|
|