![z-blog 实现登录后显示“管理后台”按钮,未登录显示注册](/zb_users/upload/auto_pic/180.jpg)
// 根据 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);
}