mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-24 11:49:51 +08:00
added: 最近学习api
This commit is contained in:
@@ -87,6 +87,11 @@ public class UserCourseHourRecordServiceImpl extends ServiceImpl<UserCourseHourR
|
||||
public List<UserCourseHourRecord> getRecords(Integer userId, Integer courseId) {
|
||||
return list(query().getWrapper().eq("user_id", userId).eq("course_id", courseId));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Integer> getLatestCourseIds(Integer userId, Integer size) {
|
||||
return getBaseMapper().getLatestCourseIds(userId, size);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user