- 拆 ssw.dacli.menu.builder 包: MenuBuilder 接口 + MenuBuildContext + 5 type builder
- WebMenuBuilder (type=1/2/3/9, 默认)
- NoSpaMenuBuilder (type=7, /ssw/{app}/... token 模板)
- DataReportMenuBuilder (type=5/6/8/10, bi/portal URL)
- LinkMenuBuilder (type=7, 完整 http:// 链接)
- ButtonMenuBuilder (type=0, 按钮, parentId 必非 -1)
- 共享 PropertyJsonBuilder + AuthorizeFieldsBuilder (4 authorize 必含)
- MenuBuilderFactory SPI 加载, 未注册 category 抛明确错误
- ssw.dacli.MenuBuilder 变轻量门面, 委派给 factory
- META-INF/services/ssw.dacli.menu.builder.MenuBuilder (5 行 SPI)
Task 2.1 baseline 157 menu (dev 54 + work 103) 收集 + type 分布:
docs/dacli/2/v13-f2-menu-type-distribution.md
docs/dacli/2/v13-f2-todo.md
注: baseline/{developSystem,workSystem}/menu/*.json 全部 0 字节
(v13 Phase 0 baseline-collect.sh 只建 ID 壳, 需 v14 修复)
本次用 dacli live API 拉真数据作 0 误差源
mvn -pl ssw-dacli -am clean compile -DskipTests ✓ BUILD SUCCESS
smoke test 5 SPI 加载 ✓ UnsupportedOperationException 错误信息正确
2 lines
2.0 KiB
JSON
2 lines
2.0 KiB
JSON
{"code":200,"msg":"Success","data":{"id":"831600780417962437","fullName":"数据导出配置","enCode":"f6_12_data_export","category":null,"type":1,"description":"由dacli创建","formData":"{\"formRef\":\"formRef\",\"formModel\":\"dataForm\",\"fields\":[]}","columnData":"{\"columnOptions\":[],\"searchList\":[],\"formData\":{},\"tableConfig\":{\"border\":true,\"stripe\":false,\"size\":\"default\",\"showRadio\":false,\"showRowNumber\":true},\"relationForm\":{\" popupTable\":\"\",\"columnOptions\":[],\"searchForms\":[]}}","appColumnData":"{\"columnOptions\":[],\"searchList\":[],\"formData\":{},\"tableConfig\":{\"border\":true,\"stripe\":false,\"size\":\"default\",\"showRadio\":false,\"showRowNumber\":true},\"relationForm\":{\" popupTable\":\"\",\"columnOptions\":[],\"searchForms\":[]}}","tables":"[{\"aliasName\":null,\"comment\":\"主表\",\"fields\":[{\"aliasName\":null,\"dataType\":\"varchar\",\"field\":\"f_id\",\"fieldName\":\"主键\",\"primaryKey\":1},{\"aliasName\":null,\"dataType\":\"varchar\",\"field\":\"f_tenant_id\",\"fieldName\":\"租户id\",\"primaryKey\":1},{\"aliasName\":null,\"dataType\":\"varchar\",\"field\":\"f_flow_id\",\"fieldName\":\"流程id\",\"primaryKey\":0},{\"aliasName\":null,\"dataType\":\"int\",\"field\":\"f_version\",\"fieldName\":\"乐观锁\",\"primaryKey\":0},{\"aliasName\":null,\"dataType\":\"varchar\",\"field\":\"f_flow_task_id\",\"fieldName\":\"流程任务主键\",\"primaryKey\":0},{\"aliasName\":null,\"dataType\":\"int\",\"field\":\"f_flow_state\",\"fieldName\":\"流程任务状态\",\"primaryKey\":0}],\"initName\":null,\"relationField\":\"\",\"relationTable\":\"\",\"table\":\"mt831600813473272261\",\"tableField\":\"\",\"tableKey\":null,\"tableName\":null,\"tableTag\":null,\"typeId\":\"1\"}]","state":1,"dbLinkId":"2056521674462703616","webType":"2","sortCode":0,"enableFlow":null,"flowTemplateJson":null,"interfaceId":null,"interfaceName":null,"interfaceParam":null,"urlAddress":null,"appUrlAddress":null,"interfaceUrl":null,"webAddress":null,"appAddress":null,"buttonData":null,"appButtonData":null}}
|