2
0

v2-progress.yaml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # 手写补充:/v2/progress 多 view 的 rows 按口径分 schema。
  2. # 只补 get 的响应 item(anyOf,各 view 形状有重叠字段,不能算互斥),post 与其它 view 保持自动生成结果。
  3. get:
  4. responses:
  5. 200:
  6. content:
  7. application/json:
  8. schema:
  9. properties:
  10. data:
  11. properties:
  12. rows:
  13. items:
  14. anyOf:
  15. - type: object
  16. description: view=chapter_channels
  17. properties:
  18. book:
  19. type: integer
  20. para:
  21. type: integer
  22. uid:
  23. type: string
  24. channel_id:
  25. type: string
  26. name:
  27. type: string
  28. type:
  29. type: string
  30. progress:
  31. type: number
  32. updated_at:
  33. type: string
  34. channel:
  35. type: object
  36. properties:
  37. uid:
  38. type: string
  39. name:
  40. type: string
  41. type:
  42. type: string
  43. - type: object
  44. description: view=ids
  45. properties:
  46. id:
  47. type: string
  48. - type: object
  49. description: view=channel
  50. properties:
  51. channel_id:
  52. type: string
  53. count:
  54. type: integer
  55. studio:
  56. type: object
  57. properties:
  58. id:
  59. type: string
  60. nickName:
  61. type: string
  62. realName:
  63. type: string
  64. studioName:
  65. type: string
  66. avatar:
  67. type: string
  68. channel:
  69. type: object
  70. properties:
  71. name:
  72. type: string
  73. summary:
  74. type: string
  75. nullable: true
  76. lang:
  77. type: string