我的课程-添加是否在学习中
正在学习-修改目录为课程
This commit is contained in:
@@ -104,7 +104,7 @@ public class CourseController {
|
||||
public R addUserCourseStudying(@RequestBody Map<String,Integer> map){
|
||||
UserCourseStudying userCourseStudying = new UserCourseStudying();
|
||||
userCourseStudying.setUserId(ShiroUtils.getUId());
|
||||
userCourseStudying.setCatalogueId(map.get("catalogueId"));
|
||||
userCourseStudying.setCourseId(map.get("courseId"));
|
||||
userCourseStudyingDao.insert(userCourseStudying);
|
||||
return R.ok().put("result",userCourseStudying);
|
||||
}
|
||||
@@ -117,7 +117,7 @@ public class CourseController {
|
||||
@RequestMapping("/removeUserCourseStudying")
|
||||
public R removeUserCourseStudying(@RequestBody Map<String,Integer> map){
|
||||
userCourseStudyingDao.delete(new LambdaQueryWrapper<UserCourseStudying>()
|
||||
.eq(UserCourseStudying::getUserId,ShiroUtils.getUId()).eq(UserCourseStudying::getCatalogueId,map.get("catalogueId")));
|
||||
.eq(UserCourseStudying::getUserId,ShiroUtils.getUId()).eq(UserCourseStudying::getCourseId,map.get("courseId")));
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user