| | |
| | | |
| | | |
| | | 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.ExCourse; |
| | |
| | | return CommonResult.success(courseService.selectApproveCourseList(course)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "课程审批") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "body", name = "id", dataType = "long", required = true, value = "课程id"), |
| | |
| | | return CommonResult.success(courseService.selectCourseById(courseId)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "课程管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "新增课程") |
| | | @PostMapping |
| | |
| | | return CommonResult.success(courseService.insertCourse(course)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "课程管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "编辑课程") |
| | | @PutMapping |
| | |
| | | return CommonResult.success(courseService.updateCourse(course)); |
| | | } |
| | | |
| | | @Log(title = "课程管理", businessType = BusinessType.UPDATE) |
| | | @RepeatSubmit |
| | | @Log(title = "课程管理", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除课程") |
| | | @DeleteMapping(value = { "/{courseId}" }) |
| | | public CommonResult delete(@PathVariable(value = "courseId", required = true) Long courseId){ |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "课程管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "修改课程状态") |
| | | @PutMapping(value = "/changeStatus") |
| | | public CommonResult changeStatus(@RequestBody ExCourse course){ |
| | | courseService.changeStatus(course); |
| | | return CommonResult.success(); |
| | | } |
| | | } |