接入学生学习数据接口

This commit is contained in:
tanxin
2026-11-05 11:01:12 +08:00
parent d1d44e250e
commit af73453035
15 changed files with 336 additions and 48 deletions
+2 -2
View File
@@ -210,10 +210,10 @@ function createMockResponse<T>(config: RequestConfig): ApiResponse<T> {
const isSecondStudent = config.url.includes('studentId=test-student-002')
data = isSecondStudent ? {
studentId: 'test-student-002', onlineToday: true, checkedInToday: false, learningMinutesToday: 78,
accuracyToday: 88, learningDaysThisWeek: 4, pendingHomeworkCount: 2, updatedAt: '2026-10-28T08:30:00+08:00'
accuracyToday: 88, learningDaysThisWeek: 4, shouldStudyDaysThisWeek: 5, pendingHomeworkCount: 2, updatedAt: '2026-10-28T08:30:00+08:00'
} : {
studentId: 'test-student-001', onlineToday: true, checkedInToday: true, learningMinutesToday: 155,
accuracyToday: 92, learningDaysThisWeek: 5, pendingHomeworkCount: 1, updatedAt: '2026-10-28T08:30:00+08:00'
accuracyToday: 92, learningDaysThisWeek: 5, shouldStudyDaysThisWeek: 5, pendingHomeworkCount: 1, updatedAt: '2026-10-28T08:30:00+08:00'
}
} else if (config.url.includes('/api/parent/today-learning')) {
const isSecondStudent = config.url.includes('studentId=test-student-002')