
sswandClaude
7a34ee6b5d
refactor(v0.11+): datasource 4 子命令改用 webapi 镜像
Phase 1 审计 (cmd-review/datasource.md) 标记 P0 必做:
- webapi/dataSource.ts 已镜像 11 函数, 使用率 0%
- 4 子命令 (list/create/test/delete) 100% 绕 webapi
修复:
- list → loadDataSource.getDataSourceList
- create → loadDataSource.createDataSource
- delete → loadDataSource.delDataSource
- test → loadDataSource.testDbConnection + getDataSourceInfo
收益:
- 消除 ~150 行 c.get/postJson/del 硬编码
- 自动同步 web 端 schema 变更
- 与 v0.11+ 镜像架构对齐 (6 个 webapi 模块之一)
Co-Authored-By: Claude <[email protected]>
2026-06-25 15:06:48 +08:00
..
2026-06-25 15:06:48 +08:00
2026-06-25 15:06:48 +08:00
2026-06-12 21:06:17 +08:00
2026-06-25 15:06:48 +08:00
2026-06-25 15:06:48 +08:00