接入学生学习数据接口
This commit is contained in:
+2
-2
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user