| | |
| | | |
| | | |
| | | 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.ExExamPaper; |
| | |
| | | return CommonResult.success(examPaperService.selectExamPaperById(paperId)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "试卷管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "新增试卷") |
| | | @PostMapping |
| | |
| | | return CommonResult.success(examPaperService.insertExamPaper(examPaper)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "试卷管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "编辑试卷") |
| | | @PutMapping |
| | |
| | | return CommonResult.success(examPaperService.updateExamPaper(examPaper)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "试卷管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "删除试卷") |
| | | @DeleteMapping(value = { "/{paperId}" }) |
| | |
| | | return CommonResult.success(examPaperService.checkNameUnique(examPaper)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "试卷管理", businessType = BusinessType.UPDATE) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "body", name = "id", dataType = "long", required = false, value = "试卷id"), |