fix: add getLearningRecords adapter for cursor param mismatch
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
d8125ddf34
commit
0cf727899a
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user