ssw 9bbad1c198 portal P1 Bug 5 fix + webapi migration (v3.0+)
- portal/{list,info,create,release} 切到 webapi/portal (loadPortal.*)
- 修复 Bug 5 (P1): portal category 必须从字典 businessType 拿真实 UUID
  - 后端 PortalServiceImpl.getModelList() 严格过滤 category 不在字典 → silently drop
  - create 命令加 resolvePortalCategory(): loadDict.getDictionaryAll()
    过滤 enCode='businessType' 取真实 id, 支持 explicit (id/enCode/fullName)
    + appCode-match + auto-first 兜底
  - 未传 --category 时自动派生 (类似 form autoDeriveCategoryFromBusinessType)
  - 显式 --category='1' 这类字符串被显式拒绝并列出合法项 (避免 silently drop)
- list/info 适配 webapi getPortalList/getInfo 已 unwrap 的响应形状 (无 .data 包裹)
- release 改走 webapi loadPortal.release(id, body), 兜底 JnpfClient 直调
  (pc=1 默认需要 pcModuleParentId, 不传走 --pc=0 --app=0 可跳过菜单父级)

Verification (testspace):
- list → 0 (empty)
- create → auto-derived category=e17e977fe98e43d0baabb327f70e6549 (车辆管理)
- list → 1 portal, category=车辆管理 (NOT silently dropped)
- release --pc=0 --app=0 → success, enabledMark=1, platformRelease 持久化
- explicit --category=CRM应用 → maps to fe72535365154b5f82fd7c2f984087f3
- negative --category=nonexistent → rejected with hint listing 合法项
2026-07-01 16:25:58 +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%