
- // 根据 id 获取课程
- @Override
- @GetMapping("/coursebase/get/{courseId}")
- public CourseBase getCourseBaseById(@PathVariable("courseId") String courseId) throws RuntimeException {return courseService.getCourseBaseById(courseId);
- }
- // 更新课程基本信息
- @Override
- @PutMapping("/coursebase/update/{id}")
- public ResponseResult updateCourseBase(@PathVariable("id") String id, @RequestBody CourseBase courseBase) {return courseService.updateCourseBase(id,courseBase);
- }