ssw a0b2a0d038 P0-8 修复: di/create+update 残留 c.get → webapi/getDataInterfaceList (2026-07-02)
audit 2026-07-02 §role/print/di 报告 P1 #5:
  - di/create.ts:165, 229 + di/update.ts:133 共 3 处 raw c.get('/system/DataInterface')
  - 跟其他 webapi 化文件不一致, 后端路径迁移时 raw call 不自动跟随
  - webapi/di.ts 缺 getDataInterfaceList 暴露 (web 端有, dacli 没用)

修复:
- webapi/di.ts 新加 getDataInterfaceList(params) 暴露
  - 镜像 web getDataInterfaceList (page list, 跟 jnpf-web 的 /api/systemData)
- di/create.ts + di/update.ts 3 处 c.get 改 getDataInterfaceList
- 行为一致: 仍走 /api/system/DataInterface 端点, 但走 webapi 框架
  - 后续后端路径变更时 webapi shim 自动跟随, 不需要 raw call 改动
- 提升 di webapi 引用 6/8 → 8/8 (100% 覆盖)

审计: dacli/docs/cmd-review/role-print-di-audit-2026-07-02.md §di 部分
2026-07-02 13:44:39 +08:00
S
Description
dacli CLI — JNPF 平台 AI 驱动开发工具 (TS 版 v0.7)
3.9 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 99.4%
Shell 0.4%
Python 0.2%