From 0cf727899a61fa14205920bdb7ead75b184fbc61 Mon Sep 17 00:00:00 2001 From: wangdl Date: Thu, 18 Jun 2026 17:00:03 +0800 Subject: [PATCH] fix: add getLearningRecords adapter for cursor param mismatch Co-Authored-By: Claude Opus 4.7 --- .../AIStudyApp/Features/Analysis/ActivityViewModel.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AIStudyApp/AIStudyApp/Features/Analysis/ActivityViewModel.swift b/AIStudyApp/AIStudyApp/Features/Analysis/ActivityViewModel.swift index 084552d..94de38a 100644 --- a/AIStudyApp/AIStudyApp/Features/Analysis/ActivityViewModel.swift +++ b/AIStudyApp/AIStudyApp/Features/Analysis/ActivityViewModel.swift @@ -29,7 +29,11 @@ protocol LearningStatusServicing { func getLearningTrend(days: Int) async throws -> LearningTrendResponse func getLearningRecords(limit: Int, type: String?) async throws -> LearningRecordsResponse } -extension ReadingAPIService: LearningStatusServicing {} +extension ReadingAPIService: LearningStatusServicing { + func getLearningRecords(limit: Int, type: String?) async throws -> LearningRecordsResponse { + try await getLearningRecords(cursor: nil, limit: limit, type: type) + } +} // MARK: - ViewModel