bug
This commit is contained in:
@@ -95,19 +95,19 @@ public class CourseController {
|
|||||||
return R.ok().put("courses",sociologyCourseList);
|
return R.ok().put("courses",sociologyCourseList);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
// /**
|
||||||
* 加入收藏(加入正在学习)
|
// * 加入收藏(加入正在学习)
|
||||||
* @param map
|
// * @param map
|
||||||
* @return
|
// * @return
|
||||||
*/
|
// */
|
||||||
@RequestMapping("/addUserCourseStudying")
|
// @RequestMapping("/addUserCourseStudying")
|
||||||
public R addUserCourseStudying(@RequestBody Map<String,Integer> map){
|
// public R addUserCourseStudying(@RequestBody Map<String,Integer> map){
|
||||||
UserCourseStudying userCourseStudying = new UserCourseStudying();
|
// UserCourseStudying userCourseStudying = new UserCourseStudying();
|
||||||
userCourseStudying.setUserId(ShiroUtils.getUId());
|
// userCourseStudying.setUserId(ShiroUtils.getUId());
|
||||||
userCourseStudying.setCatalogueId(map.get("catalogueId"));
|
// userCourseStudying.setCatalogueId(map.get("catalogueId"));
|
||||||
userCourseStudyingDao.insert(userCourseStudying);
|
// userCourseStudyingDao.insert(userCourseStudying);
|
||||||
return R.ok().put("result",userCourseStudying);
|
// return R.ok().put("result",userCourseStudying);
|
||||||
}
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 移出收藏(移出正在学习)
|
* 移出收藏(移出正在学习)
|
||||||
|
|||||||
Reference in New Issue
Block a user