fix: add getLearningRecords adapter for cursor param mismatch

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-06-18 17:00:03 +08:00
parent d8125ddf34
commit 0cf727899a

View File

@ -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