| | |
| | | |
| | | @ApiOperation(value = "根据id获取课程章节信息") |
| | | @GetMapping(value = { "/{chapterId}" }) |
| | | public CommonResult getCompanyInfo(@PathVariable(value = "chapterId", required = true) Long chapterId) |
| | | public CommonResult getChapterInfo(@PathVariable(value = "chapterId", required = true) Long chapterId) |
| | | { |
| | | return CommonResult.success(courseChapterService.selectChapterById(chapterId)); |
| | | } |
| | |
| | | @GetMapping(value = { "/getCourseChapter" }) |
| | | public CommonResult getCourseChapter(@RequestParam(required = true)Long courseId) |
| | | { |
| | | return CommonResult.success(courseChapterService.selectChapterByCourseId(courseId)); |
| | | return CommonResult.success(courseChapterService.selectChapterByCourseId(courseId,null)); |
| | | } |
| | | |
| | | @ApiOperation(value = "校验章节名称是否唯一") |