小bug 修复
This commit is contained in:
@@ -12,6 +12,8 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Slf4j
|
||||
@RestController("sociologyCourse")
|
||||
@@ -22,14 +24,14 @@ public class CourseController {
|
||||
|
||||
/**
|
||||
* 获取用户最近学习课程列表
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/getUserLateCourseList")
|
||||
public R getUserLateCourseList(@RequestBody ParamTo param){
|
||||
public R getUserLateCourseList(){
|
||||
ParamTo param = new ParamTo();
|
||||
Integer userId = ShiroUtils.getUId();
|
||||
param.setId(userId);
|
||||
Page userLateCourseList = courseService.getUserLateCourseList(param);
|
||||
List<CourseEntity> userLateCourseList = courseService.getUserLateCourseList(param);
|
||||
return R.ok().put("page",userLateCourseList);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user