v2-channel-progress.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-channel-progress.yaml
  2. post:
  3. summary: 获取章节的进度
  4. tags:
  5. - channel-progress
  6. operationId: post_api_v2_channel_progress
  7. description: |
  8. 已被 `POST /v3/channels/batch-progress` 取代(`owner=all|my` 改为可选的 `studio`)。保留仅为 dashboard-v4 兼容,待 v4 下线后删除。
  9. requestBody:
  10. required: false
  11. content:
  12. application/json:
  13. schema:
  14. type: object
  15. properties:
  16. sentence:
  17. type: string
  18. owner:
  19. type: string
  20. responses:
  21. 200:
  22. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  23. content:
  24. application/json:
  25. schema:
  26. type: object
  27. properties:
  28. ok:
  29. type: boolean
  30. message:
  31. type: string
  32. data:
  33. type: object
  34. 401:
  35. $ref: '../../main.yaml#/components/responses/Unauthorized'
  36. 422:
  37. $ref: '../../main.yaml#/components/responses/ValidationError'
  38. deprecated: true