Просмотр исходного кода

docs(story-008.002): 调整RPC API调用任务到正确的任务位置

根据用户反馈,调整RPC API调用任务位置:
1. 任务2(移植页面):添加RPC API调用实现,使用ClientManager.get()方式
2. 任务3(实现RPC客户端):移除RPC API调用实现,只保留API路径映射
3. 确保页面组件中正确使用channelClientManager.get()调用API

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 1 неделя назад
Родитель
Сommit
bacc485823
1 измененных файлов с 8 добавлено и 8 удалено
  1. 8 8
      docs/stories/008.002.transplant-channel-management-ui.story.md

+ 8 - 8
docs/stories/008.002.transplant-channel-management-ui.story.md

@@ -40,6 +40,14 @@ Draft
   - [ ] 转换Ant Design组件为@d8d/shared-ui-components组件
   - [ ] 转换Jotai状态管理为React Query
   - [ ] 转换Ant Design Form为React Hook Form + Zod
+  - [ ] **RPC API调用实现(在页面组件中使用ClientManager)**:
+    - [ ] 创建渠道:`channelClientManager.get().createChannel.$post({ json: channelData })`
+    - [ ] 删除渠道:`channelClientManager.get().deleteChannel.$post({ json: { id } })`
+    - [ ] 更新渠道:`channelClientManager.get().updateChannel.$post({ json: channelData })`
+    - [ ] 获取渠道列表:`channelClientManager.get().channels.$get({ query: { page, pageSize, name } })`
+    - [ ] 获取渠道详情:`channelClientManager.get().channel[':id'].$get({ param: { id } })`
+    - [ ] 搜索渠道:`channelClientManager.get().searchChannel.$post({ json: { name } })`
+    - [ ] 批量删除渠道:`channelClientManager.get().batchDeleteChannel.$post({ json: { ids } })`
 
 - [ ] 任务3:实现RPC客户端 (AC: 3)
   - [ ] 参考对照文件:`allin-packages/platform-management-ui/src/api/platformClient.ts`
@@ -47,14 +55,6 @@ Draft
   - [ ] 实现ClientManager单例模式
   - [ ] 导出channelClient和channelClientManager
   - [ ] 创建API导出文件:`src/api/index.ts`
-  - [ ] **RPC API调用实现(基于渠道模块集成测试)**:
-    - [ ] 创建渠道:`client.createChannel.$post({ json: channelData })`
-    - [ ] 删除渠道:`client.deleteChannel.$post({ json: { id } })`
-    - [ ] 更新渠道:`client.updateChannel.$post({ json: channelData })`
-    - [ ] 获取渠道列表:`client.channels.$get({ query: { page, pageSize, name } })`
-    - [ ] 获取渠道详情:`client.channel[':id'].$get({ param: { id } })`
-    - [ ] 搜索渠道:`client.searchChannel.$post({ json: { name } })`
-    - [ ] 批量删除渠道:`client.batchDeleteChannel.$post({ json: { ids } })`
   - [ ] **API路径映射(基于渠道模块路由定义)**:
     - [ ] `POST /createChannel` → `client.createChannel.$post`
     - [ ] `POST /deleteChannel` → `client.deleteChannel.$post`