| | |
| | | |
| | | |
| | | 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.ExCourseChapterPeriod; |
| | |
| | | return CommonResult.success(courseChapterPeriodService.selectPeriodById(periodId)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "课时管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "新增课时") |
| | | @PostMapping |
| | |
| | | return CommonResult.success(courseChapterPeriodService.insertPeriod(chapterPeriod)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "课时管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "编辑课时") |
| | | @PutMapping |
| | |
| | | return CommonResult.success(courseChapterPeriodService.updatePeriod(chapterPeriod)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "课时管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "删除课时") |
| | | @DeleteMapping(value = { "/{periodId}" }) |