| | |
| | | |
| | | |
| | | 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.ExCoursePhase; |
| | |
| | | return CommonResult.success(coursePhaseService.selectCoursePhaseById(phaseId)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "批次管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "新增批次") |
| | | @PostMapping |
| | |
| | | return CommonResult.success(coursePhaseService.insertCoursePhase(coursePhase)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "批次管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "编辑批次") |
| | | @PutMapping |
| | |
| | | return CommonResult.success(coursePhaseService.updateCoursePhase(coursePhase)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "批次管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "删除批次") |
| | | @DeleteMapping(value = { "/{phaseId}" }) |