IOS-INFO-016:批量上传 ReadingEvent API Client #124

Open
opened 2026-06-10 21:28:13 +08:00 by wangdl · 0 comments
Owner

目标

实现 iOS 批量上传阅读事件 API Client。

接口

POST /learning-info/events/batch

请求

  • BatchUploadReadingEventsRequest
    • events: [ReadingEventUploadItem]

响应

  • acceptedCount
  • duplicateCount
  • failedCount
  • warningCount
  • results[]

规则

  1. 支持部分成功。
  2. duplicate 不算失败。
  3. failed item 保留在本地队列。
  4. accepted / duplicate 可标记 uploaded。
  5. API 返回 warning 需要记录。

验收标准

  1. API Client 可发送批量事件。
  2. 支持 response decoding。
  3. 支持 accepted / duplicate / failed 结果处理。
  4. 网络失败不删除本地事件。
  5. 有 mock API 测试。
## 目标 实现 iOS 批量上传阅读事件 API Client。 ## 接口 ``` POST /learning-info/events/batch ``` ## 请求 - BatchUploadReadingEventsRequest - events: [ReadingEventUploadItem] ## 响应 - acceptedCount - duplicateCount - failedCount - warningCount - results[] ## 规则 1. 支持部分成功。 2. duplicate 不算失败。 3. failed item 保留在本地队列。 4. accepted / duplicate 可标记 uploaded。 5. API 返回 warning 需要记录。 ## 验收标准 1. API Client 可发送批量事件。 2. 支持 response decoding。 3. 支持 accepted / duplicate / failed 结果处理。 4. 网络失败不删除本地事件。 5. 有 mock API 测试。
wangdl added this to the M-IOS-INFO:学习信息采集、上传、继续学习与基础分析闭环 milestone 2026-06-10 21:28:13 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wangdl/ios-projects#124
No description provided.