| | |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "课程管理", businessType = BusinessType.UPDATE) |
| | | @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(); |
| | | } |
| | | } |