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