| | |
| | | |
| | | |
| | | import com.gkhy.exam.common.annotation.Log; |
| | | import com.gkhy.exam.common.annotation.RepeatSubmit; |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.common.enums.BusinessType; |
| | | import com.gkhy.exam.system.domain.ExQuestion; |
| | |
| | | @ApiOperation(value = "题目列表(分页)") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10") |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"), |
| | | @ApiImplicitParam(paramType = "query", name = "bankId", dataType = "long", required = true, value = "题库id") |
| | | }) |
| | | @GetMapping("/list") |
| | | public CommonResult list(ExQuestion question){ |
| | |
| | | return CommonResult.success(questionService.selectQuestionById(questionId)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "题目管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "新增题目") |
| | | @PostMapping |
| | |
| | | return CommonResult.success(questionService.insertQuestion(question)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "题目管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "编辑题目") |
| | | @PutMapping |
| | |
| | | return CommonResult.success(questionService.updateQuestion(question)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "题目管理", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除题目") |
| | | @DeleteMapping(value = { "/{questionId}" }) |