feature_list_phase2.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. {
  2. "project_name": "AI有声书生成工具 - 第二期",
  3. "base_config": {
  4. "backend_port": 3000,
  5. "frontend_port": 5173,
  6. "db_host": "localhost",
  7. "db_port": 3306,
  8. "auth_enabled": false
  9. },
  10. "features": [
  11. {
  12. "id": 1,
  13. "description": "播放记录 - 数据库表设计",
  14. "status": "done",
  15. "passes": true,
  16. "backend_test_steps": [
  17. "1. curl -X POST http://localhost:3000/api/player/progress -H 'Content-Type: application/json' -d '{\"userId\":\"test-user\",\"audioId\":\"audio-001\",\"progress\":30.5,\"duration\":180}' - 验证创建播放记录",
  18. "2. curl http://localhost:3000/api/player/progress?userId=test-user - 验证查询播放记录列表",
  19. "3. curl -X PUT http://localhost:3000/api/player/progress/audio-001 -H 'Content-Type: application/json' -d '{\"progress\":60.0}' - 验证更新播放进度",
  20. "4. curl -X DELETE http://localhost:3000/api/player/progress/audio-001 - 验证删除播放记录"
  21. ],
  22. "frontend_test_steps": [
  23. "1. 打开播放器页面",
  24. "2. 点击播放音频",
  25. "3. 等待5秒后查看播放进度是否自动保存",
  26. "4. 刷新页面验证续播位置是否正确"
  27. ],
  28. "status": "init",
  29. "passes": false
  30. },
  31. {
  32. "id": 2,
  33. "description": "播放记录 - 前端播放器集成",
  34. "backend_test_steps": [
  35. "1. curl http://localhost:3000/api/player/progress?userId=test-user - 验证获取播放进度接口正常"
  36. ],
  37. "frontend_test_steps": [
  38. "1. 打开player页面",
  39. "2. 选择一个有播放进度的音频",
  40. "3. 验证是否从上次进度位置开始播放",
  41. "4. 验证播放进度每5秒自动保存"
  42. ],
  43. "status": "init",
  44. "passes": false
  45. },
  46. {
  47. "id": 3,
  48. "description": "收藏功能 - 数据库表设计",
  49. "backend_test_steps": [
  50. "1. curl -X POST http://localhost:3000/api/favorites -H 'Content-Type: application/json' -d '{\"userId\":\"test-user\",\"audioId\":\"audio-002\"}' - 验证添加收藏",
  51. "2. curl http://localhost:3000/api/favorites?userId=test-user - 验证查询收藏列表",
  52. "3. curl -X DELETE http://localhost:3000/api/favorites/audio-002 - 验证取消收藏",
  53. "4. curl -X POST http://localhost:3000/api/favorites -H 'Content-Type: application/json' -d '{\"userId\":\"test-user\",\"audioId\":\"audio-003\"}' - 重新添加收藏用于后续测试"
  54. ],
  55. "frontend_test_steps": [
  56. "1. 打开player页面",
  57. "2. 点击收藏按钮",
  58. "3. 验证收藏状态变为已收藏",
  59. "4. 进入favorites页面",
  60. "5. 验证收藏的音频显示在列表中",
  61. "6. 点击取消收藏按钮",
  62. "7. 验证列表中该音频已移除"
  63. ],
  64. "status": "init",
  65. "passes": false
  66. },
  67. {
  68. "id": 4,
  69. "description": "收藏功能 - favorites页面开发",
  70. "backend_test_steps": [
  71. "1. curl http://localhost:3000/api/favorites?userId=test-user - 验证收藏列表查询"
  72. ],
  73. "frontend_test_steps": [
  74. "1. 进入favorites收藏页面",
  75. "2. 验证页面正常加载,显示收藏列表",
  76. "3. 点击某个音频进入播放器",
  77. "4. 返回favorites页面验证列表刷新正常"
  78. ],
  79. "status": "init",
  80. "passes": false
  81. },
  82. {
  83. "id": 5,
  84. "description": "定时关闭 - 前端定时器实现",
  85. "backend_test_steps": [],
  86. "frontend_test_steps": [
  87. "1. 打开player页面并开始播放",
  88. "2. 点击定时关闭按钮",
  89. "3. 选择15分钟定时",
  90. "4. 验证倒计时显示正确",
  91. "5. 等待或快进到定时时间",
  92. "6. 验证播放自动暂停"
  93. ],
  94. "status": "init",
  95. "passes": false
  96. },
  97. {
  98. "id": 6,
  99. "description": "播放速度记忆 - 用户偏好API",
  100. "backend_test_steps": [
  101. "1. curl -X POST http://localhost:3000/api/user/preferences -H 'Content-Type: application/json' -d '{\"userId\":\"test-user\",\"playSpeed\":1.5}' - 验证创建用户偏好",
  102. "2. curl http://localhost:3000/api/user/preferences?userId=test-user - 验证查询用户偏好",
  103. "3. curl -X PUT http://localhost:3000/api/user/preferences -H 'Content-Type: application/json' -d '{\"userId\":\"test-user\",\"playSpeed\":2.0}' - 验证更新播放速度",
  104. "4. curl -X PUT http://localhost:3000/api/user/preferences -H 'Content-Type: application/json' -d '{\"userId\":\"test-user\",\"playSpeed\":1.0}' - 恢复默认速度"
  105. ],
  106. "frontend_test_steps": [
  107. "1. 打开player页面",
  108. "2. 调整播放速度为1.5x",
  109. "3. 刷新页面",
  110. "4. 验证播放速度仍为1.5x"
  111. ],
  112. "status": "init",
  113. "passes": false
  114. },
  115. {
  116. "id": 7,
  117. "description": "分享功能 - 微信JSSDK集成",
  118. "backend_test_steps": [
  119. "1. curl http://localhost:3000/api/share?audioId=audio-001 - 验证生成分享链接接口"
  120. ],
  121. "frontend_test_steps": [
  122. "1. 打开player页面",
  123. "2. 点击分享按钮",
  124. "3. 验证分享面板正常弹出",
  125. "4. 验证分享卡片显示标题、封面、简介"
  126. ],
  127. "status": "init",
  128. "passes": false
  129. },
  130. {
  131. "id": 8,
  132. "description": "分享功能 - 分享卡片生成",
  133. "backend_test_steps": [
  134. "1. curl http://localhost:3000/api/share?audioId=audio-001 - 验证分享信息接口返回正确数据"
  135. ],
  136. "frontend_test_steps": [
  137. "1. 打开player页面",
  138. "2. 点击分享到微信好友",
  139. "3. 验证分享内容包含音频标题",
  140. "4. 点击分享到朋友圈",
  141. "5. 验证朋友圈分享内容正确"
  142. ],
  143. "status": "init",
  144. "passes": false
  145. },
  146. {
  147. "id": 9,
  148. "description": "加载优化 - 骨架屏组件",
  149. "backend_test_steps": [],
  150. "frontend_test_steps": [
  151. "1. 刷新首页",
  152. "2. 验证骨架屏正常显示",
  153. "3. 验证数据加载完成后骨架屏消失",
  154. "4. 验证内容正常渲染"
  155. ],
  156. "status": "init",
  157. "passes": false
  158. },
  159. {
  160. "id": 10,
  161. "description": "加载优化 - 图片懒加载",
  162. "backend_test_steps": [],
  163. "frontend_test_steps": [
  164. "1. 进入包含多张图片的列表页面",
  165. "2. 验证首屏图片正常加载",
  166. "3. 滚动页面",
  167. "4. 验证下方图片进入可视区时加载",
  168. "5. 滚动回顶部",
  169. "6. 验证图片已缓存不会重复加载"
  170. ],
  171. "status": "init",
  172. "passes": false
  173. },
  174. {
  175. "id": 11,
  176. "description": "全局搜索 - 搜索API",
  177. "backend_test_steps": [
  178. "1. curl http://localhost:3000/api/search?q=test - 验证搜索接口",
  179. "2. curl http://localhost:3000/api/search?q=故事 - 验证中文搜索",
  180. "3. curl http://localhost:3000/api/search?q= - 验证空关键词处理"
  181. ],
  182. "frontend_test_steps": [
  183. "1. 进入search搜索页面",
  184. "2. 输入搜索关键词",
  185. "3. 验证搜索结果列表正常显示",
  186. "4. 验证搜索结果相关性"
  187. ],
  188. "status": "init",
  189. "passes": false
  190. },
  191. {
  192. "id": 12,
  193. "description": "全局搜索 - search页面开发",
  194. "backend_test_steps": [
  195. "1. curl http://localhost:3000/api/search?q=小说 - 验证搜索结果正确返回"
  196. ],
  197. "frontend_test_steps": [
  198. "1. 进入search搜索页面",
  199. "2. 验证搜索历史记录显示",
  200. "3. 验证热门推荐显示",
  201. "4. 输入关键词进行搜索",
  202. "5. 点击搜索结果进入player页面"
  203. ],
  204. "status": "init",
  205. "passes": false
  206. },
  207. {
  208. "id": 13,
  209. "description": "内容分类 - 分类管理API",
  210. "backend_test_steps": [
  211. "1. curl http://localhost:3000/api/categories - 验证获取分类列表",
  212. "2. curl http://localhost:3000/api/categories/1 - 验证获取分类下音频",
  213. "3. curl http://localhost:3000/api/categories/999 - 验证无效分类ID处理"
  214. ],
  215. "frontend_test_steps": [
  216. "1. 进入index首页",
  217. "2. 验证分类标签显示正确",
  218. "3. 点击某个分类",
  219. "4. 验证只显示该分类下的音频"
  220. ],
  221. "status": "init",
  222. "passes": false
  223. },
  224. {
  225. "id": 14,
  226. "description": "内容分类 - 分类筛选",
  227. "backend_test_steps": [
  228. "1. curl http://localhost:3000/api/categories/2 - 验证分类2音频列表"
  229. ],
  230. "frontend_test_steps": [
  231. "1. 在index页面切换不同分类标签",
  232. "2. 验证列表内容随分类变化",
  233. "3. 验证分类筛选准确性"
  234. ],
  235. "status": "init",
  236. "passes": false
  237. },
  238. {
  239. "id": 15,
  240. "description": "音质选择 - 音质切换逻辑",
  241. "backend_test_steps": [
  242. "1. curl -X PUT http://localhost:3000/api/user/preferences -H 'Content-Type: application/json' -d '{\"userId\":\"test-user\",\"quality\":\"high\"}' - 验证设置高品质",
  243. "2. curl http://localhost:3000/api/user/preferences?userId=test-user - 验证获取偏好确认"
  244. ],
  245. "frontend_test_steps": [
  246. "1. 打开player页面",
  247. "2. 点击音质选择按钮",
  248. "3. 切换到高音质",
  249. "4. 验证音质切换生效",
  250. "5. 刷新页面验证音质设置已保存"
  251. ],
  252. "status": "init",
  253. "passes": false
  254. },
  255. {
  256. "id": 16,
  257. "description": "离线缓存 - 下载管理",
  258. "backend_test_steps": [
  259. "1. curl http://localhost:3000/api/downloads - 验证获取下载列表",
  260. "2. curl http://localhost:3000/api/downloads/check - 验证检查下载状态"
  261. ],
  262. "frontend_test_steps": [
  263. "1. 进入favorites页面",
  264. "2. 选择一个音频点击下载",
  265. "3. 验证下载进度显示",
  266. "4. 验证下载完成后状态更新"
  267. ],
  268. "status": "init",
  269. "passes": false
  270. },
  271. {
  272. "id": 17,
  273. "description": "离线缓存 - 离线播放",
  274. "backend_test_steps": [
  275. "1. curl http://localhost:3000/api/downloads - 验证下载列表接口"
  276. ],
  277. "frontend_test_steps": [
  278. "1. 进入favorites页面",
  279. "2. 验证已下载音频显示下载状态",
  280. "3. 关闭网络连接",
  281. "4. 点击已下载音频进行播放",
  282. "5. 验证离线播放正常"
  283. ],
  284. "status": "init",
  285. "passes": false
  286. },
  287. {
  288. "id": 18,
  289. "description": "评论打分 - 评论API",
  290. "backend_test_steps": [
  291. "1. curl -X POST http://localhost:3000/api/comments -H 'Content-Type: application/json' -d '{\"userId\":\"test-user\",\"audioId\":\"audio-004\",\"content\":\"很好听\",\"rating\":5}' - 验证发表评论",
  292. "2. curl http://localhost:3000/api/comments/audio-004 - 验证获取评论列表",
  293. "3. curl -X POST http://localhost:3000/api/comments -H 'Content-Type: application/json' -d '{\"userId\":\"test-user2\",\"audioId\":\"audio-004\",\"content\":\"不错\",\"rating\":4}' - 添加更多评论"
  294. ],
  295. "frontend_test_steps": [
  296. "1. 打开player页面",
  297. "2. 滑动到评论区",
  298. "3. 验证评论列表显示",
  299. "4. 输入评论内容并打分",
  300. "5. 点击提交",
  301. "6. 验证新评论显示在列表中"
  302. ],
  303. "status": "init",
  304. "passes": false
  305. },
  306. {
  307. "id": 19,
  308. "description": "消息通知 - 通知API",
  309. "backend_test_steps": [
  310. "1. curl http://localhost:3000/api/notifications - 验证获取通知列表",
  311. "2. curl -X POST http://localhost:3000/api/notifications/read -H 'Content-Type: application/json' -d '{\"id\":\"notif-001\"}' - 验证标记已读"
  312. ],
  313. "frontend_test_steps": [
  314. "1. 进入任意页面",
  315. "2. 验证通知图标显示",
  316. "3. 点击通知图标",
  317. "4. 验证通知列表正常显示",
  318. "5. 点击某条通知",
  319. "6. 验证已读状态更新"
  320. ],
  321. "status": "init",
  322. "passes": false
  323. }
  324. ]
  325. }