|
@@ -31,25 +31,25 @@ public class QuestionController {
|
|
@Resource
|
|
@Resource
|
|
private ExecutorService executorService;
|
|
private ExecutorService executorService;
|
|
|
|
|
|
- @ApiOperation(value = "增加 试题")
|
|
|
|
|
|
+ @ApiOperation(value = "增加 题目")
|
|
@RequestMapping(value = "/addQuestionForPaper", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/addQuestionForPaper", method = RequestMethod.POST)
|
|
public Result addQuestionForPaper(@RequestBody Question question) {
|
|
public Result addQuestionForPaper(@RequestBody Question question) {
|
|
return questionService.addQuestion(question);
|
|
return questionService.addQuestion(question);
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "修改 试题")
|
|
|
|
|
|
+ @ApiOperation(value = "修改 题目")
|
|
@RequestMapping(value = "/updateQuestionForPaper", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/updateQuestionForPaper", method = RequestMethod.POST)
|
|
public Result updateQuestionForPaper(@RequestBody Question question) {
|
|
public Result updateQuestionForPaper(@RequestBody Question question) {
|
|
return questionService.updateQuestion(question);
|
|
return questionService.updateQuestion(question);
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "查询 试题 ")
|
|
|
|
|
|
+ @ApiOperation(value = "查询 题目 ")
|
|
@RequestMapping(value = "/getQuestion", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/getQuestion", method = RequestMethod.GET)
|
|
public Question getQuestion(@RequestParam Long id) {
|
|
public Question getQuestion(@RequestParam Long id) {
|
|
return questionService.getQuestion(id);
|
|
return questionService.getQuestion(id);
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "删除 试题 ")
|
|
|
|
|
|
+ @ApiOperation(value = "删除 题目 ")
|
|
@RequestMapping(value = "/deleteQuestion", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/deleteQuestion", method = RequestMethod.GET)
|
|
public void deleteQuestion(@RequestParam Long id) {
|
|
public void deleteQuestion(@RequestParam Long id) {
|
|
questionService.deleteQuestion(id);
|
|
questionService.deleteQuestion(id);
|