This commit is contained in:
wangjinlei
2024-04-02 09:32:12 +08:00
parent b2b0841b6a
commit 20bcc445da
3 changed files with 7 additions and 5 deletions

View File

@@ -107,14 +107,14 @@ public class CourseController {
@RequestMapping("/getCourseCatalogueChapterVideoList")
public R getCourseCatalogueChapterVideoList(@RequestBody ParamTo param){
courseCatalogueChapterVideoService.getCourseCatalogueChapterVideoList(param);
return R.ok();
Page courseCatalogueChapterVideoList = courseCatalogueChapterVideoService.getCourseCatalogueChapterVideoList(param);
return R.ok().put("page",courseCatalogueChapterVideoList);
}
@RequestMapping("/addCourseCatalogueChapterVideo")
public R addCourseCatalogueChapterVideo(@RequestBody CourseCatalogueChapterVideoEntity courseCatalogueChapterVideoEntity){
courseCatalogueChapterVideoService.save(courseCatalogueChapterVideoEntity);
return R.ok();
boolean save = courseCatalogueChapterVideoService.save(courseCatalogueChapterVideoEntity);
return save?R.ok():R.error("error");
}
@RequestMapping("/delCourseCatalogueChapterVideo")