mm_workflow 1.5.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/mod/dispatcher/load_balance/index.js +8 -6
- package/common/mod/executor/custom/index.js +7 -8
- package/common/mod/generator/llm_gen_workflow/index.js +113 -100
- package/common/mod/manager/database/index.js +39 -26
- package/common/mod/manager/discovery/index.js +17 -3
- package/common/mod/manager/json_util.js +43 -31
- package/common/mod/observer/audit/index.js +7 -4
- package/common/mod/observer/prometheus/index.js +59 -42
- package/common/mod/receiver/webhook/index.js +30 -11
- package/index.js +0 -4
- package/kernel/blockly_converter.js +55 -33
- package/kernel/blockly_defs.js +88 -71
- package/kernel/bpmn_parser.js +27 -15
- package/kernel/kernel.js +145 -103
- package/kernel/kernel_config.js +33 -7
- package/kernel/workflow_engine.js +30 -17
- package/kernel/workflow_state.js +25 -8
- package/package.json +19 -11
- package/tool/circuit_breaker/index.js +187 -5
- package/tool/ip_block/index.js +20 -5
- package/tool/rate_limit/index.js +49 -5
- package/tool/sensitive/index.js +29 -5
- package/tool/spam/index.js +30 -5
- package/tool/sql_inject/index.js +35 -5
- package/tool/workflow_admin/index.js +65 -0
- package/tool/workflow_admin/tool.json +40 -0
- package/tool/workflow_run/index.js +81 -0
- package/tool/workflow_run/tool.json +60 -0
- package/common/workflow/wftest_1789472356864/ok_wf.json +0 -20
- package/common/workflow/wftest_1789472356864/suggest_h.json +0 -14
- package/common/workflow/wftest_1789472528456/ok_wf.json +0 -20
- package/common/workflow/wftest_1789472528456/suggest_h.json +0 -14
- package/common/workflow/wftest_1789472914308/ok_wf.json +0 -20
- package/common/workflow/wftest_1789472914308/suggest_h.json +0 -14
- package/common/workflow/wftest_1789472926735/ok_wf.json +0 -20
- package/common/workflow/wftest_1789472926735/suggest_h.json +0 -14
- package/common/workflow/wftest_1789473005165/ok_wf.json +0 -20
- package/common/workflow/wftest_1789473005165/suggest_h.json +0 -14
- package/common/workflow/wftest_1789473128440/ok_wf.json +0 -20
- package/common/workflow/wftest_1789473128440/suggest_h.json +0 -14
- package/common/workflow/wftest_1789473140984/ok_wf.json +0 -20
- package/common/workflow/wftest_1789473140984/suggest_h.json +0 -14
- package/common/workflow/wftest_1789473444205/ok_wf.json +0 -20
- package/common/workflow/wftest_1789473444205/suggest_h.json +0 -14
- package/common/workflow/wftest_1789473632028/ok_wf.json +0 -20
- package/common/workflow/wftest_1789473632028/suggest_h.json +0 -14
- package/common/workflow/wftest_1789473735755/ok_wf.json +0 -20
- package/common/workflow/wftest_1789473735755/suggest_h.json +0 -14
- package/common/workflow/wftest_1789473793373/ok_wf.json +0 -20
- package/common/workflow/wftest_1789473793373/suggest_h.json +0 -14
- package/common/workflow/wftest_1789474054650/ok_wf.json +0 -20
- package/common/workflow/wftest_1789474054650/suggest_h.json +0 -14
- package/common/workflow/wftest_1789474139961/ok_wf.json +0 -20
- package/common/workflow/wftest_1789474139961/suggest_h.json +0 -14
- package/common/workflow/wftest_1789474522109/ok_wf.json +0 -20
- package/common/workflow/wftest_1789474522109/suggest_h.json +0 -14
- package/common/workflow/wftest_1789474695647/ok_wf.json +0 -20
- package/common/workflow/wftest_1789474695647/suggest_h.json +0 -14
- package/common/workflow/wftest_1789474822920/ok_wf.json +0 -20
- package/common/workflow/wftest_1789474822920/suggest_h.json +0 -14
- package/common/workflow/wftest_1789474863955/ok_wf.json +0 -20
- package/common/workflow/wftest_1789474863955/suggest_h.json +0 -14
- package/common/workflow/wftest_1789474920642/ok_wf.json +0 -20
- package/common/workflow/wftest_1789474920642/suggest_h.json +0 -14
- package/common/workflow/wftest_1789474948523/ok_wf.json +0 -20
- package/common/workflow/wftest_1789474948523/suggest_h.json +0 -14
- package/common/workflow/wftest_1789474977320/ok_wf.json +0 -20
- package/common/workflow/wftest_1789474977320/suggest_h.json +0 -14
- package/common/workflow/wftest_1789475013956/ok_wf.json +0 -20
- package/common/workflow/wftest_1789475013956/suggest_h.json +0 -14
- package/common/workflow/wftest_1789476776624/ok_wf.json +0 -20
- package/common/workflow/wftest_1789476776624/suggest_h.json +0 -14
- package/common/workflow/wftest_1789477074699/ok_wf.json +0 -20
- package/common/workflow/wftest_1789477074699/suggest_h.json +0 -14
- package/common/workflow/wftest_1789478655100/ok_wf.json +0 -20
- package/common/workflow/wftest_1789478655100/suggest_h.json +0 -14
- package/common/workflow/wftest_1789499010987/ok_wf.json +0 -20
- package/common/workflow/wftest_1789499010987/suggest_h.json +0 -14
- package/common/workflow/wftest_1789519488954/ok_wf.json +0 -20
- package/common/workflow/wftest_1789519488954/suggest_h.json +0 -14
- package/docs/API/345/217/202/350/200/203.md +0 -146
- package/docs/Blockly/346/230/240/345/260/204/346/226/271/346/241/210.md +0 -213
- package/docs/LLM/351/233/206/346/210/220/346/214/207/345/215/227.md +0 -29
- package/docs/Workflow/347/274/226/345/206/231/346/214/207/345/215/227.md +0 -194
- package/docs/ctx/344/270/212/344/270/213/346/226/207/350/257/246/350/247/243.md +0 -256
- package/docs//344/272/214/346/254/241/345/274/200/345/217/221/346/214/207/345/215/227.md +0 -151
- package/docs//345/244/232/345/215/217/350/256/256/350/247/246/345/217/221/346/214/207/345/215/227.md +0 -272
- package/docs//345/256/236/346/210/230/346/241/210/344/276/213.md +0 -392
- package/docs//345/267/245/344/275/234/346/265/201/350/246/206/347/233/226/345/210/206/346/236/220.md +0 -585
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243.md +0 -200
- package/docs//345/277/253/351/200/237/345/274/200/345/247/213.md +0 -66
- package/docs//346/234/200/344/275/263/345/256/236/350/267/265.md +0 -265
- package/docs//346/236/266/346/236/204/350/256/276/350/256/241.md +0 -29
- package/docs//346/240/270/345/277/203/346/246/202/345/277/265.md +0 -194
- package/docs//346/250/241/345/235/227/344/275/223/347/263/273/350/257/264/346/230/216.md +0 -111
- package/docs//346/250/241/345/235/227/346/270/205/345/215/225.md +0 -288
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212/AI/345/267/245/344/275/234/346/265/201/347/224/237/346/210/220/346/210/220/346/234/254/345/210/206/346/236/220.md +0 -234
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212/CM/345/207/275/346/225/260/345/244/247/345/205/250.md +0 -93
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212/RPG_Maker_/344/272/213/344/273/266/350/204/232/346/234/254/345/257/271/346/257/224/345/210/206/346/236/220.md +0 -734
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212//344/270/211/345/233/275/346/235/200/345/217/257/350/241/214/346/200/247/345/210/206/346/236/220.md +0 -379
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212//344/277/256/344/273/231/345/206/263/345/217/257/350/241/214/346/200/247/345/210/206/346/236/220.md +0 -256
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212//344/277/256/344/273/231/347/211/210/345/215/241/347/211/214/346/270/270/346/210/217.md +0 -355
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212//345/206/222/351/231/251/345/262/233CM/345/207/275/346/225/260/345/210/206/346/236/220.md +0 -81
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212//345/206/222/351/231/251/345/262/233NPC/350/204/232/346/234/254/346/224/257/346/214/201/345/210/206/346/236/220.md +0 -365
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212//345/244/247/351/203/250/345/210/206/351/200/232/347/224/250/346/250/241/345/235/227/345/210/206/346/236/220.md +0 -33
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212//345/260/217/345/225/206/345/272/227/351/234/200/346/261/202/350/247/204/346/240/274.md +0 -577
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212//346/250/241/346/213/237/344/272/272/347/224/237/346/201/213/347/210/261/345/205/273/346/210/220RPG/345/217/257/350/241/214/346/200/247/345/210/206/346/236/220.md +0 -314
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212//346/255/243/345/274/217/345/217/257/347/224/250/345/267/256/350/267/235/345/210/206/346/236/220.md +0 -463
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212//346/270/270/346/210/217/347/216/213/345/215/241/347/211/214/346/270/270/346/210/217/345/217/257/350/241/214/346/200/247/345/210/206/346/236/220.md +0 -673
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212//350/264/252/345/251/252/344/271/213/345/262/233/345/217/257/350/241/214/346/200/247/345/210/206/346/236/220.md +0 -405
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212//350/264/252/345/251/252/344/271/213/345/262/233/347/262/276/347/256/200/347/211/210/345/217/257/350/241/214/346/200/247/345/210/206/346/236/220.md +0 -289
- package/docs//350/256/276/350/256/241/345/210/206/346/236/220/346/212/245/345/221/212//351/207/215/350/243/205/346/234/272/345/205/265/346/226/207/345/255/227/347/211/210/346/270/270/346/210/217.md +0 -417
- package/docs//350/260/203/350/257/225/344/270/216/346/216/222/351/224/231.md +0 -255
- package/example/common/mod/executor/effect/executor.json +0 -58
- package/example/common/mod/executor/effect/index.js +0 -93
- package/example/common/mod/executor/warp/executor.json +0 -57
- package/example/common/mod/executor/warp/index.js +0 -73
- package/example/common/mod/manager/inventory/index.js +0 -205
- package/example/common/mod/manager/inventory/manager.json +0 -70
- package/example/common/mod/manager/persistence/index.js +0 -176
- package/example/common/mod/manager/persistence/manager.json +0 -67
- package/example/common/mod/manager/player/index.js +0 -187
- package/example/common/mod/manager/player/manager.json +0 -102
- package/example/common/mod/manager/quest/index.js +0 -196
- package/example/common/mod/manager/quest/manager.json +0 -50
- package/example/common/mod/manager/shop/index.js +0 -66
- package/example/common/mod/manager/shop/manager.json +0 -44
- package/example/common/mod/manager/skill/index.js +0 -143
- package/example/common/mod/manager/skill/manager.json +0 -82
- package/example/common/script/demo/index.js +0 -16
- package/example/common/script/demo/script.json +0 -21
- package/example/common/workflow/admin/dashboard.json +0 -87
- package/example/common/workflow/admin/order_deliver.json +0 -99
- package/example/common/workflow/admin/order_list.json +0 -79
- package/example/common/workflow/admin/product_off.json +0 -85
- package/example/common/workflow/admin/product_on.json +0 -85
- package/example/common/workflow/admin/user_list.json +0 -68
- package/example/common/workflow/cart/add.json +0 -86
- package/example/common/workflow/cart/checkout.json +0 -120
- package/example/common/workflow/cart/del.json +0 -47
- package/example/common/workflow/cart/list.json +0 -55
- package/example/common/workflow/cart/set.json +0 -106
- package/example/common/workflow/db/create_table.json +0 -57
- package/example/common/workflow/db/mysql_query.json +0 -47
- package/example/common/workflow/db/sqlite_crud.json +0 -48
- package/example/common/workflow/npc/blacksmith.json +0 -91
- package/example/common/workflow/npc/quest_giver.json +0 -136
- package/example/common/workflow/order/create.json +0 -76
- package/example/common/workflow/order/create_bpmn.json +0 -105
- package/example/common/workflow/order/history.json +0 -69
- package/example/common/workflow/payment/process.json +0 -74
- package/example/common/workflow/product/add.json +0 -72
- package/example/common/workflow/product/categories.json +0 -41
- package/example/common/workflow/product/count.json +0 -65
- package/example/common/workflow/product/del.json +0 -84
- package/example/common/workflow/product/get.json +0 -59
- package/example/common/workflow/product/list.json +0 -80
- package/example/common/workflow/product/search.json +0 -59
- package/example/common/workflow/product/set.json +0 -87
- package/example/common/workflow/shop/create.json +0 -70
- package/example/common/workflow/shop/del.json +0 -84
- package/example/common/workflow/shop/get.json +0 -43
- package/example/common/workflow/shop/list.json +0 -80
- package/example/common/workflow/shop/products.json +0 -69
- package/example/common/workflow/shop/set.json +0 -64
- package/example/common/workflow/system/monitor.json +0 -62
- package/example/common/workflow/user/address_add.json +0 -49
- package/example/common/workflow/user/address_list.json +0 -44
- package/example/common/workflow/user/change_password.json +0 -87
- package/example/common/workflow/user/login.json +0 -83
- package/example/common/workflow/user/profile.json +0 -71
- package/example/common/workflow/user/register.json +0 -77
- package/example/config +0 -122
- package/example/config.json +0 -94
- package/example/data/model/bag.json +0 -28
- package/example/data/model/character.json +0 -38
- package/example/data/model/quest.json +0 -14
- package/example/data/model/save.json +0 -10
- package/example/data/model/shop.json +0 -14
- package/example/data/model/skill.json +0 -28
- package/example/data/test.js +0 -365
- package/example/db/mm.db +0 -0
- package/example/db/mm.db-shm +0 -0
- package/example/db/mm.db-wal +0 -0
- package/example/db/sql/ecommerce.sql +0 -84
- package/example/db/sql/game.sql +0 -72
- package/example/ecom_out.txt +0 -0
- package/example/ecommerce.js +0 -450
- package/example/index.js +0 -262
- package/example/npc_demo.js +0 -361
- package/lib/tools/circuit_breaker/index.js +0 -164
- package/lib/tools/index.js +0 -16
- package/lib/tools/ip_block/index.js +0 -20
- package/lib/tools/rate_limit/index.js +0 -49
- package/lib/tools/sensitive/index.js +0 -29
- package/lib/tools/spam/index.js +0 -30
- package/lib/tools/sql_inject/index.js +0 -35
- package/llm.js +0 -257
- package/scan_modules.js +0 -124
- package/scripts/add_type_field.js +0 -153
- package/scripts/create_project.js +0 -276
- package/scripts/generate_mod.js +0 -229
- package/templates/db/backup_table.json +0 -52
- package/templates/db/create_table.json +0 -68
- package/templates/db/crud_sqlite.json +0 -98
- package/templates/db/db_sqlite.json +0 -52
- package/templates/db/ecommerce.sql +0 -87
- package/templates/db/export_table.json +0 -51
- package/templates/demo/hello.json +0 -47
- package/templates/demo/http_demo.json +0 -48
- package/templates/demo/llm_chat.json +0 -44
- package/templates/demo/render_demo.json +0 -46
- package/templates/demo/validator_demo.json +0 -64
- package/templates/order/create.json +0 -113
- package/templates/user_account/add.json +0 -92
- package/templates/user_account/count.json +0 -24
- package/templates/user_account/del.json +0 -38
- package/templates/user_account/get.json +0 -48
- package/templates/user_account/init.json +0 -76
- package/templates/user_account/list.json +0 -48
- package/templates/user_account/set.json +0 -65
- package/templates/user_account/user_account.sql +0 -21
- package/test.js +0 -253
package/docs//345/267/245/344/275/234/346/265/201/350/246/206/347/233/226/345/210/206/346/236/220.md
DELETED
|
@@ -1,585 +0,0 @@
|
|
|
1
|
-
# 工作流覆盖分析 — 12 种主流 APP 类型
|
|
2
|
-
|
|
3
|
-
> 分析目的:验证现有 **20 器 137 模块** 能否通过 workflow 组合支撑主流 APP 类型。
|
|
4
|
-
> 约束:**不新增器分类**,所有模块必须是通用功能,**不包含业务逻辑**。
|
|
5
|
-
> 状态:**模块已全部补全**,以下分析基于当前实际模块。
|
|
6
|
-
> 分析方法:按 CRUD 功能点逐一映射,区分「模块组合覆盖」「需 executor/script 兜底」「外部调用」。
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## 功能点覆盖标准
|
|
11
|
-
|
|
12
|
-
- **模块组合覆盖** ✅:现有模块直接串联即可实现
|
|
13
|
-
- **需 executor/script** 🔧:纯模块组合表达困难,需写少量自定义代码
|
|
14
|
-
- **外部调用** 🔗:调第三方 API(executor/http),本身就是模块能力
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## 1. 聊天 APP(即时通讯)
|
|
19
|
-
|
|
20
|
-
### 功能点分解
|
|
21
|
-
|
|
22
|
-
| # | 功能点 | 实现方式 | 状态 |
|
|
23
|
-
|---|--------|---------|------|
|
|
24
|
-
| 1 | WebSocket 连接管理 | receiver/ws | ✅ |
|
|
25
|
-
| 2 | HTTP API 接口 | receiver/http | ✅ |
|
|
26
|
-
| 3 | 消息 JSON 解析 | parser/json | ✅ |
|
|
27
|
-
| 4 | 消息格式校验 | validator/required + type + length | ✅ |
|
|
28
|
-
| 5 | 敏感词过滤 | filter/sensitive | ✅ |
|
|
29
|
-
| 6 | 垃圾消息过滤 | filter/spam | ✅ |
|
|
30
|
-
| 7 | 消息持久化(写库) | manager/mongodb | ✅ |
|
|
31
|
-
| 8 | 消息查询(分页/条件) | querier/paginate + condition + sort | ✅ |
|
|
32
|
-
| 9 | 消息搜索 | querier/search | ✅ |
|
|
33
|
-
| 10 | 用户在线状态 | manager/redis(get/set) | ✅ |
|
|
34
|
-
| 11 | 会话管理 | manager/redis(expire) | ✅ |
|
|
35
|
-
| 12 | 推送通知 | sender/gateway → push | ✅ |
|
|
36
|
-
| 13 | 操作日志 | observer/log + audit | ✅ |
|
|
37
|
-
| 14 | 监控告警 | observer/metric + performance | ✅ |
|
|
38
|
-
| 15 | 消息重试 | looper/retry | ✅ |
|
|
39
|
-
| 16 | 用户注册/登录 | validator/jwt + oauth + basic | ✅ |
|
|
40
|
-
| 17 | Token 校验 | validator/jwt | ✅ |
|
|
41
|
-
| 18 | 消息队列缓冲(高并发) | manager/queue | ✅ |
|
|
42
|
-
| 19 | 好友关系增删改查 | manager/mongodb + querier 组合 | ✅ |
|
|
43
|
-
| 20 | 群组增删改查 | manager/mongodb + querier 组合 | ✅ |
|
|
44
|
-
|
|
45
|
-
**纯模块覆盖**: 20 个功能点中 19/20 = **95%**,剩余 1 个需 executor/script 兜底
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## 2. 购物 APP(电商)
|
|
50
|
-
|
|
51
|
-
### 功能点分解
|
|
52
|
-
|
|
53
|
-
| # | 功能点 | 实现方式 | 状态 |
|
|
54
|
-
|---|--------|---------|------|
|
|
55
|
-
| 1 | HTTP API 接口 | receiver/http | ✅ |
|
|
56
|
-
| 2 | 参数解析 | parser/json + form | ✅ |
|
|
57
|
-
| 3 | 参数校验 | validator/required + type + range + enum + pattern | ✅ |
|
|
58
|
-
| 4 | 防刷限流 | filter/rate_limit | ✅ |
|
|
59
|
-
| 5 | 商品列表(分页/搜索) | querier/paginate + search + condition + sort | ✅ |
|
|
60
|
-
| 6 | 商品分类聚合 | querier/aggregate + condition | ✅ |
|
|
61
|
-
| 7 | 价格计算 | calculator/sum + formula + percent + round | ✅ |
|
|
62
|
-
| 8 | 库存验证 | validator/range | ✅ |
|
|
63
|
-
| 9 | 购物车(Redis) | manager/redis(get/set/del) | ✅ |
|
|
64
|
-
| 10 | 订单写入 | manager/mysql | ✅ |
|
|
65
|
-
| 11 | 订单查询 | querier/paginate + condition + sort | ✅ |
|
|
66
|
-
| 12 | 支付回调处理 | receiver/webhook + parser/json | ✅ |
|
|
67
|
-
| 13 | 订单通知 | sender/gateway → sms/email | ✅ |
|
|
68
|
-
| 14 | 操作审计 | observer/audit + log | ✅ |
|
|
69
|
-
| 15 | 订单重试 | looper/retry | ✅ |
|
|
70
|
-
| 16 | 用户注册/登录 | validator/jwt + oauth + basic | ✅ |
|
|
71
|
-
| 17 | Token 校验 | validator/jwt | ✅ |
|
|
72
|
-
| 18 | 订单状态流转 | executor/state_machine | ✅ |
|
|
73
|
-
| 19 | 支付渠道对接 | gateway/wechat_pay + alipay + stripe | ✅ |
|
|
74
|
-
| 20 | 异步订单处理 | manager/queue | ✅ |
|
|
75
|
-
| 21 | 地址管理(增删改查) | manager/mysql + querier 组合 | ✅ |
|
|
76
|
-
| 22 | 优惠券/折扣计算 | calculator/formula 组合 | ✅ |
|
|
77
|
-
| 23 | 商品评价(增删改查) | manager/mongodb + querier 组合 | ✅ |
|
|
78
|
-
|
|
79
|
-
**纯模块覆盖**: 23 个功能点中 20/23 = **87%**,剩余 3 个需 executor/script 兜底
|
|
80
|
-
|
|
81
|
-
---
|
|
82
|
-
|
|
83
|
-
## 3. 内容管理 APP(CMS)
|
|
84
|
-
|
|
85
|
-
### 功能点分解
|
|
86
|
-
|
|
87
|
-
| # | 功能点 | 实现方式 | 状态 |
|
|
88
|
-
|---|--------|---------|------|
|
|
89
|
-
| 1 | HTTP API | receiver/http | ✅ |
|
|
90
|
-
| 2 | 文件上传 | receiver/file | ✅ |
|
|
91
|
-
| 3 | 内容解析(JSON/XML/YAML) | parser/json + xml + yaml + csv | ✅ |
|
|
92
|
-
| 4 | 表单解析 | parser/form | ✅ |
|
|
93
|
-
| 5 | 字段校验 | validator/required + type + length + pattern + enum | ✅ |
|
|
94
|
-
| 6 | 敏感内容过滤 | filter/sensitive | ✅ |
|
|
95
|
-
| 7 | SQL 注入防护 | filter/sql_inject | ✅ |
|
|
96
|
-
| 8 | 内容增删改查 | manager/mysql + querier/paginate + condition + sort | ✅ |
|
|
97
|
-
| 9 | 全站搜索 | querier/search | ✅ |
|
|
98
|
-
| 10 | 数据聚合统计 | querier/aggregate | ✅ |
|
|
99
|
-
| 11 | 内容处理(批量操作) | looper/batch + loop | ✅ |
|
|
100
|
-
| 12 | 内容存储 | manager/mysql + file | ✅ |
|
|
101
|
-
| 13 | 配置管理 | manager/config | ✅ |
|
|
102
|
-
| 14 | 缓存加速 | manager/cache | ✅ |
|
|
103
|
-
| 15 | 内容渲染(HTML/MD/模板) | renderer/html + markdown + template | ✅ |
|
|
104
|
-
| 16 | 内容审核 | reviewer/quality + security + compliance | ✅ |
|
|
105
|
-
| 17 | 内容发布流程 | designer/form + layout + schema + template + workflow | ✅ |
|
|
106
|
-
| 18 | 内容生成 | generator/api + code + config + report + script | ✅ |
|
|
107
|
-
| 19 | 操作日志 | observer/log + audit | ✅ |
|
|
108
|
-
| 20 | 健康检查 | observer/health | ✅ |
|
|
109
|
-
| 21 | 数据备份 | solidifier/backup + archive | ✅ |
|
|
110
|
-
| 22 | 定时发布 | looper/schedule | ✅ |
|
|
111
|
-
| 23 | 用户权限验证 | validator/rbac + abac | ✅ |
|
|
112
|
-
| 24 | 内容版本管理 | manager/mongodb + querier/condition 组合 | ✅ |
|
|
113
|
-
|
|
114
|
-
**纯模块覆盖**: 24 个功能点中 23/24 = **96%**
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
## 4. 论坛 APP(BBS)
|
|
119
|
-
|
|
120
|
-
### 功能点分解
|
|
121
|
-
|
|
122
|
-
| # | 功能点 | 实现方式 | 状态 |
|
|
123
|
-
|---|--------|---------|------|
|
|
124
|
-
| 1 | HTTP API | receiver/http | ✅ |
|
|
125
|
-
| 2 | 实时通知 | receiver/ws | ✅ |
|
|
126
|
-
| 3 | 数据解析 | parser/json | ✅ |
|
|
127
|
-
| 4 | 发帖校验 | validator/required + type + length + pattern | ✅ |
|
|
128
|
-
| 5 | 敏感词过滤 | filter/sensitive + spam | ✅ |
|
|
129
|
-
| 6 | 安全防护 | filter/sql_inject + rate_limit | ✅ |
|
|
130
|
-
| 7 | 内容匹配 | matcher/fuzzy + exact + similarity + regex | ✅ |
|
|
131
|
-
| 8 | 路由分发 | dispatcher/route + priority | ✅ |
|
|
132
|
-
| 9 | 帖子存储/查询 | manager/mongodb + querier/paginate + condition + sort | ✅ |
|
|
133
|
-
| 10 | 全文搜索 | querier/search | ✅ |
|
|
134
|
-
| 11 | 热门排序 | querier/sort + aggregate | ✅ |
|
|
135
|
-
| 12 | 积分计算 | calculator/sum + count + formula | ✅ |
|
|
136
|
-
| 13 | 缓存加速 | manager/cache + redis | ✅ |
|
|
137
|
-
| 14 | 推送通知 | sender/gateway → push/dingtalk | ✅ |
|
|
138
|
-
| 15 | 操作审计 | observer/audit + log | ✅ |
|
|
139
|
-
| 16 | 性能监控 | observer/metric + performance | ✅ |
|
|
140
|
-
| 17 | 用户注册/登录 | validator/jwt + oauth + basic | ✅ |
|
|
141
|
-
| 18 | Token 校验 | validator/jwt | ✅ |
|
|
142
|
-
| 19 | 高并发缓冲 | manager/queue | ✅ |
|
|
143
|
-
|
|
144
|
-
**纯模块覆盖**: 19 个功能点中 18/19 = **95%**,剩余 1 个需 executor/script
|
|
145
|
-
|
|
146
|
-
---
|
|
147
|
-
|
|
148
|
-
## 5. 图像处理 APP
|
|
149
|
-
|
|
150
|
-
### 功能点分解
|
|
151
|
-
|
|
152
|
-
| # | 功能点 | 实现方式 | 状态 |
|
|
153
|
-
|---|--------|---------|------|
|
|
154
|
-
| 1 | 文件上传 | receiver/file | ✅ |
|
|
155
|
-
| 2 | HTTP API | receiver/http | ✅ |
|
|
156
|
-
| 3 | 参数校验 | validator/required + type + range | ✅ |
|
|
157
|
-
| 4 | 限流保护 | filter/rate_limit | ✅ |
|
|
158
|
-
| 5 | 任务分发 | dispatcher/route + load_balance | ✅ |
|
|
159
|
-
| 6 | 命令调用(ffmpeg) | executor/command | 🔗 |
|
|
160
|
-
| 7 | 批量处理 | looper/batch + loop | ✅ |
|
|
161
|
-
| 8 | 自定义脚本 | executor/script | 🔧 |
|
|
162
|
-
| 9 | 尺寸计算 | calculator/percent + round + count | ✅ |
|
|
163
|
-
| 10 | 文件存储 | manager/file | ✅ |
|
|
164
|
-
| 11 | 缓存管理 | manager/cache + redis | ✅ |
|
|
165
|
-
| 12 | 任务监控 | observer/log + metric + performance | ✅ |
|
|
166
|
-
| 13 | 重试机制 | looper/retry + watchdog | ✅ |
|
|
167
|
-
| 14 | 批量遍历 | looper/batch | ✅ |
|
|
168
|
-
| 15 | 图像格式/缩放/滤镜 | converter/image | ✅ |
|
|
169
|
-
| 16 | 异步任务队列 | manager/queue | ✅ |
|
|
170
|
-
| 17 | AI 识别(OCR/人脸) | executor/http 调外部 API | 🔗 |
|
|
171
|
-
| 18 | 图片审核 | executor/http 调审核 API | 🔗 |
|
|
172
|
-
|
|
173
|
-
**纯模块覆盖**: 18 个功能点中 15/18 = **83%**,剩余 3 个靠 executor/command + executor/http 外部调用
|
|
174
|
-
|
|
175
|
-
---
|
|
176
|
-
|
|
177
|
-
## 6. 视频 APP
|
|
178
|
-
|
|
179
|
-
### 功能点分解
|
|
180
|
-
|
|
181
|
-
| # | 功能点 | 实现方式 | 状态 |
|
|
182
|
-
|---|--------|---------|------|
|
|
183
|
-
| 1 | 视频上传 | receiver/file + http | ✅ |
|
|
184
|
-
| 2 | 流式接收 | receiver/stream | ✅ |
|
|
185
|
-
| 3 | 参数校验 | validator/required + type + range | ✅ |
|
|
186
|
-
| 4 | 限流保护 | filter/rate_limit | ✅ |
|
|
187
|
-
| 5 | 任务分发 | dispatcher/route + load_balance | ✅ |
|
|
188
|
-
| 6 | 转码(ffmpeg) | executor/command | 🔗 |
|
|
189
|
-
| 7 | 批量处理 | looper/batch + loop | ✅ |
|
|
190
|
-
| 8 | 自定义逻辑 | executor/script | 🔧 |
|
|
191
|
-
| 9 | 回调处理 | executor/http | 🔗 |
|
|
192
|
-
| 10 | 统计计算 | calculator/count + sum + percent | ✅ |
|
|
193
|
-
| 11 | 文件存储 | manager/file | ✅ |
|
|
194
|
-
| 12 | 元数据存储 | manager/mongodb | ✅ |
|
|
195
|
-
| 13 | 缓存加速 | manager/cache + redis | ✅ |
|
|
196
|
-
| 14 | 监控告警 | observer/log + metric + health | ✅ |
|
|
197
|
-
| 15 | 重试机制 | looper/retry + watchdog | ✅ |
|
|
198
|
-
| 16 | 定时任务 | looper/schedule | ✅ |
|
|
199
|
-
| 17 | 视频转码/切片 | converter/video | ✅ |
|
|
200
|
-
| 18 | 封面生成 | converter/video | ✅ |
|
|
201
|
-
| 19 | 异步转码任务 | manager/queue | ✅ |
|
|
202
|
-
| 20 | AI 内容识别 | executor/http 调外部 API | 🔗 |
|
|
203
|
-
| 21 | 视频审核 | executor/http 调审核 API | 🔗 |
|
|
204
|
-
|
|
205
|
-
**纯模块覆盖**: 21 个功能点中 18/21 = **86%**,剩余 3 个靠外部调用
|
|
206
|
-
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
## 7. 股票 APP
|
|
210
|
-
|
|
211
|
-
### 功能点分解
|
|
212
|
-
|
|
213
|
-
| # | 功能点 | 实现方式 | 状态 |
|
|
214
|
-
|---|--------|---------|------|
|
|
215
|
-
| 1 | 实时行情(WS) | receiver/ws | ✅ |
|
|
216
|
-
| 2 | HTTP API | receiver/http | ✅ |
|
|
217
|
-
| 3 | CSV 数据解析 | parser/csv | ✅ |
|
|
218
|
-
| 4 | 参数校验 | validator/required + type + range | ✅ |
|
|
219
|
-
| 5 | 限流保护 | filter/rate_limit | ✅ |
|
|
220
|
-
| 6 | 代码匹配 | matcher/exact + regex + prefix | ✅ |
|
|
221
|
-
| 7 | 路由分发 | dispatcher/route + priority | ✅ |
|
|
222
|
-
| 8 | 交易逻辑 | executor/script | 🔧 |
|
|
223
|
-
| 9 | HTTP 行情源 | executor/http | 🔗 |
|
|
224
|
-
| 10 | 统计计算 | calculator/sum + formula + percent + average + count + round | ✅ |
|
|
225
|
-
| 11 | 数据缓存 | manager/cache + redis | ✅ |
|
|
226
|
-
| 12 | 行情存储 | manager/mongodb | ✅ |
|
|
227
|
-
| 13 | 行情查询 | querier/paginate + condition + sort + aggregate | ✅ |
|
|
228
|
-
| 14 | 推送通知 | sender/gateway → push/dingtalk | ✅ |
|
|
229
|
-
| 15 | 操作审计 | observer/audit + log | ✅ |
|
|
230
|
-
| 16 | 性能监控 | observer/metric + health | ✅ |
|
|
231
|
-
| 17 | 定时任务 | looper/schedule | ✅ |
|
|
232
|
-
| 18 | 断线重连 | looper/watchdog + retry | ✅ |
|
|
233
|
-
| 19 | K 线聚合计算 | calculator/kline | ✅ |
|
|
234
|
-
| 20 | 技术指标计算 | calculator/indicator | ✅ |
|
|
235
|
-
|
|
236
|
-
**纯模块覆盖**: 20 个功能点中 18/20 = **90%**,交易逻辑用 executor/script
|
|
237
|
-
|
|
238
|
-
---
|
|
239
|
-
|
|
240
|
-
## 8. 智能家居 APP(IoT)
|
|
241
|
-
|
|
242
|
-
### 功能点分解
|
|
243
|
-
|
|
244
|
-
| # | 功能点 | 实现方式 | 状态 |
|
|
245
|
-
|---|--------|---------|------|
|
|
246
|
-
| 1 | MQTT 设备接入 | receiver/mqtt | ✅ |
|
|
247
|
-
| 2 | WebSocket 推送 | receiver/ws | ✅ |
|
|
248
|
-
| 3 | HTTP API | receiver/http | ✅ |
|
|
249
|
-
| 4 | 数据解析 | parser/json + xml | ✅ |
|
|
250
|
-
| 5 | 数据校验 | validator/required + type + range + enum | ✅ |
|
|
251
|
-
| 6 | 限流保护 | filter/rate_limit | ✅ |
|
|
252
|
-
| 7 | 主题匹配 | matcher/mqtt_topic + wildcard + prefix | ✅ |
|
|
253
|
-
| 8 | 精确匹配 | matcher/exact | ✅ |
|
|
254
|
-
| 9 | 指令路由 | dispatcher/route + priority + retry | ✅ |
|
|
255
|
-
| 10 | 设备逻辑 | executor/script + http | 🔧 |
|
|
256
|
-
| 11 | 传感器计算 | calculator/average + sum + count + round | ✅ |
|
|
257
|
-
| 12 | 数据持久化 | manager/mongodb + sqlite | ✅ |
|
|
258
|
-
| 13 | 配置管理 | manager/config | ✅ |
|
|
259
|
-
| 14 | 缓存加速 | manager/cache + redis | ✅ |
|
|
260
|
-
| 15 | 历史数据查询 | querier/paginate + condition + sort + aggregate | ✅ |
|
|
261
|
-
| 16 | 告警通知 | sender/gateway → dingtalk/wechat/push/sms | ✅ |
|
|
262
|
-
| 17 | 日志审计 | observer/log + audit + health | ✅ |
|
|
263
|
-
| 18 | 定时任务 | looper/schedule | ✅ |
|
|
264
|
-
| 19 | 断线重连 | looper/watchdog + retry | ✅ |
|
|
265
|
-
| 20 | 批量处理 | looper/batch | ✅ |
|
|
266
|
-
| 21 | 设备管理(注册/列表) | manager/mongodb + querier 组合 | ✅ |
|
|
267
|
-
| 22 | 场景联动规则 | executor/rule_engine | ✅ |
|
|
268
|
-
| 23 | OTA 固件升级 | solidifier/firmware | ✅ |
|
|
269
|
-
|
|
270
|
-
**纯模块覆盖**: 23 个功能点中 21/23 = **91%**
|
|
271
|
-
|
|
272
|
-
---
|
|
273
|
-
|
|
274
|
-
## 9. OA 企业管理系统
|
|
275
|
-
|
|
276
|
-
### 功能点分解
|
|
277
|
-
|
|
278
|
-
| # | 功能点 | 实现方式 | 状态 |
|
|
279
|
-
|---|--------|---------|------|
|
|
280
|
-
| 1 | HTTP API | receiver/http | ✅ |
|
|
281
|
-
| 2 | 参数校验 | validator/required + type + length + enum | ✅ |
|
|
282
|
-
| 3 | 字段校验 + 必填检查 | validator/required + type | ✅ |
|
|
283
|
-
| 4 | 防刷限流 | filter/rate_limit | ✅ |
|
|
284
|
-
| 5 | SQL 注入防护 | filter/sql_inject | ✅ |
|
|
285
|
-
| 6 | 组织架构(部门/员工增删改查) | manager/mysql + querier 组合 | ✅ |
|
|
286
|
-
| 7 | 角色权限管理 | validator/rbac + abac | ✅ |
|
|
287
|
-
| 8 | 表单自定义设计 | designer/form + layout + schema | ✅ |
|
|
288
|
-
| 9 | 审批流定义 | designer/workflow | ✅ |
|
|
289
|
-
| 10 | 审批流执行(会签/或签) | executor/state_machine + dispatcher/condition | ✅ |
|
|
290
|
-
| 11 | 任务通知 | sender/gateway → dingtalk/wechat/email | ✅ |
|
|
291
|
-
| 12 | 报表生成 | generator/report + renderer/html | ✅ |
|
|
292
|
-
| 13 | 数据导出 | converter/encoding + manager/file | ✅ |
|
|
293
|
-
| 14 | 操作审计 | observer/audit + log | ✅ |
|
|
294
|
-
| 15 | 系统配置 | manager/config | ✅ |
|
|
295
|
-
| 16 | 缓存加速 | manager/cache | ✅ |
|
|
296
|
-
| 17 | 文件存储/附件 | manager/file | ✅ |
|
|
297
|
-
| 18 | 全文搜索 | querier/search | ✅ |
|
|
298
|
-
| 19 | 健康监控 | observer/health + metric | ✅ |
|
|
299
|
-
| 20 | 数据备份 | solidifier/backup | ✅ |
|
|
300
|
-
| 21 | 定时任务(日报/周报) | looper/schedule | ✅ |
|
|
301
|
-
| 22 | 考勤计算 | calculator/sum + count + formula | ✅ |
|
|
302
|
-
| 23 | 绩效考核(KPI 评分) | calculator/formula + percent + round | ✅ |
|
|
303
|
-
|
|
304
|
-
**纯模块覆盖**: 23 个功能点中 22/23 = **96%**,审批条件分支用 dispatcher/condition 覆盖
|
|
305
|
-
|
|
306
|
-
---
|
|
307
|
-
|
|
308
|
-
## 10. 在线教育平台
|
|
309
|
-
|
|
310
|
-
### 功能点分解
|
|
311
|
-
|
|
312
|
-
| # | 功能点 | 实现方式 | 状态 |
|
|
313
|
-
|---|--------|---------|------|
|
|
314
|
-
| 1 | HTTP API | receiver/http | ✅ |
|
|
315
|
-
| 2 | 视频上传 + 流式播放 | receiver/file + stream | ✅ |
|
|
316
|
-
| 3 | 参数校验 | validator/required + type + range | ✅ |
|
|
317
|
-
| 4 | 敏感内容过滤 | filter/sensitive + spam | ✅ |
|
|
318
|
-
| 5 | 课程增删改查 | manager/mongodb + querier 组合 | ✅ |
|
|
319
|
-
| 6 | 课程分页/搜索 | querier/paginate + search + sort | ✅ |
|
|
320
|
-
| 7 | 章节管理(排序/嵌套) | manager/mysql + querier/condition + sort | ✅ |
|
|
321
|
-
| 8 | 视频转码处理 | converter/video | ✅ |
|
|
322
|
-
| 9 | 内容渲染(课件/MD) | renderer/markdown + html + template | ✅ |
|
|
323
|
-
| 10 | 用户注册/登录 | validator/jwt + oauth + basic | ✅ |
|
|
324
|
-
| 11 | Token 校验 | validator/jwt | ✅ |
|
|
325
|
-
| 12 | 课程购买/支付 | gateway/wechat_pay + alipay | ✅ |
|
|
326
|
-
| 13 | 订单管理 | manager/mysql + querier 组合 | ✅ |
|
|
327
|
-
| 14 | 学习进度追踪 | manager/redis(get/set) | ✅ |
|
|
328
|
-
| 15 | 考试/测验(出题+评分) | executor/script | 🔧 |
|
|
329
|
-
| 16 | 成绩统计 | calculator/sum + average + count + percent + round | ✅ |
|
|
330
|
-
| 17 | 证书生成 | generator/report + renderer/template | ✅ |
|
|
331
|
-
| 18 | 通知推送 | sender/gateway → push/email | ✅ |
|
|
332
|
-
| 19 | 直播互动(WS) | receiver/ws+ sender/mqtt | ✅ |
|
|
333
|
-
| 20 | 操作审计 | observer/audit + log | ✅ |
|
|
334
|
-
| 21 | 断线重连 | looper/watchdog + retry | ✅ |
|
|
335
|
-
| 22 | 定时备份课程数据 | solidifier/backup + looper/schedule | ✅ |
|
|
336
|
-
|
|
337
|
-
**纯模块覆盖**: 22 个功能点中 20/22 = **91%**,考试出题评分需 executor/script
|
|
338
|
-
|
|
339
|
-
---
|
|
340
|
-
|
|
341
|
-
## 11. 外卖 O2O 平台
|
|
342
|
-
|
|
343
|
-
### 功能点分解
|
|
344
|
-
|
|
345
|
-
| # | 功能点 | 实现方式 | 状态 |
|
|
346
|
-
|---|--------|---------|------|
|
|
347
|
-
| 1 | HTTP API | receiver/http | ✅ |
|
|
348
|
-
| 2 | 参数校验 | validator/required + type + range + enum | ✅ |
|
|
349
|
-
| 3 | 防刷限流 | filter/rate_limit | ✅ |
|
|
350
|
-
| 4 | 商户管理(增删改查) | manager/mysql + querier 组合 | ✅ |
|
|
351
|
-
| 5 | 商品管理(菜品/价格) | manager/mongodb + querier 组合 | ✅ |
|
|
352
|
-
| 6 | 商品搜索/筛选 | querier/paginate + search + condition + sort | ✅ |
|
|
353
|
-
| 7 | 购物车(Redis) | manager/redis(get/set/del) | ✅ |
|
|
354
|
-
| 8 | 订单创建 | manager/mysql | ✅ |
|
|
355
|
-
| 9 | 订单状态机 | executor/state_machine | ✅ |
|
|
356
|
-
| 10 | 订单派单(路由) | dispatcher/route + condition | ✅ |
|
|
357
|
-
| 11 | 实时配送追踪(WS) | receiver/ws | ✅ |
|
|
358
|
-
| 12 | 骑手管理 | manager/redis + mongodb | ✅ |
|
|
359
|
-
| 13 | 价格计算 | calculator/sum + formula + percent + round | ✅ |
|
|
360
|
-
| 14 | 优惠券核销 | validator/range + calculator/formula | ✅ |
|
|
361
|
-
| 15 | 支付对接 | gateway/wechat_pay + alipay | ✅ |
|
|
362
|
-
| 16 | 支付回调 | receiver/webhook + parser/json | ✅ |
|
|
363
|
-
| 17 | 通知推送 | sender/gateway → push/sms | ✅ |
|
|
364
|
-
| 18 | 订单超时取消 | looper/watchdog + schedule | ✅ |
|
|
365
|
-
| 19 | 异步订单处理 | manager/queue | ✅ |
|
|
366
|
-
| 20 | 评价系统 | manager/mongodb + querier 组合 | ✅ |
|
|
367
|
-
| 21 | 操作审计 | observer/audit + log | ✅ |
|
|
368
|
-
| 22 | 实时数据大屏 | observer/metric | ✅ |
|
|
369
|
-
| 23 | 历史订单查询 | querier/paginate + condition + sort + aggregate | ✅ |
|
|
370
|
-
| 24 | 数据报表 | generator/report + calculator | ✅ |
|
|
371
|
-
|
|
372
|
-
**纯模块覆盖**: 24 个功能点中 21/24 = **88%**,骑手定位追踪等需 executor/script 兜底
|
|
373
|
-
|
|
374
|
-
---
|
|
375
|
-
|
|
376
|
-
## 12. 内容创作/博客平台
|
|
377
|
-
|
|
378
|
-
### 功能点分解
|
|
379
|
-
|
|
380
|
-
| # | 功能点 | 实现方式 | 状态 |
|
|
381
|
-
|---|--------|---------|------|
|
|
382
|
-
| 1 | HTTP API | receiver/http | ✅ |
|
|
383
|
-
| 2 | Markdown/富文本编辑 | parser/form + converter/type | ✅ |
|
|
384
|
-
| 3 | 参数校验 | validator/required + type + length + pattern | ✅ |
|
|
385
|
-
| 4 | 敏感内容过滤 | filter/sensitive + spam | ✅ |
|
|
386
|
-
| 5 | 安全防护 | filter/sql_inject + rate_limit | ✅ |
|
|
387
|
-
| 6 | 文章增删改查 | manager/mongodb + querier 组合 | ✅ |
|
|
388
|
-
| 7 | 文章搜索 | querier/search | ✅ |
|
|
389
|
-
| 8 | 分类/标签管理 | querier/aggregate + condition | ✅ |
|
|
390
|
-
| 9 | 内容渲染 | renderer/markdown + html | ✅ |
|
|
391
|
-
| 10 | 用户注册/登录 | validator/jwt + oauth + basic | ✅ |
|
|
392
|
-
| 11 | Token 校验 | validator/jwt | ✅ |
|
|
393
|
-
| 12 | 关注/订阅 | manager/redis(set) | ✅ |
|
|
394
|
-
| 13 | 点赞/收藏 | manager/redis(incr) | ✅ |
|
|
395
|
-
| 14 | 评论系统 | manager/mongodb + querier 组合 | ✅ |
|
|
396
|
-
| 15 | 阅读量统计 | calculator/count + sum | ✅ |
|
|
397
|
-
| 16 | 热门/推荐排序 | querier/sort + matcher/recommend | ✅ |
|
|
398
|
-
| 17 | 图片上传 | receiver/file | ✅ |
|
|
399
|
-
| 18 | 推送通知 | sender/gateway → push/email | ✅ |
|
|
400
|
-
| 19 | 定时发布 | looper/schedule | ✅ |
|
|
401
|
-
| 20 | 数据备份 | solidifier/backup + package | ✅ |
|
|
402
|
-
| 21 | 内容审核 | reviewer/quality + compliance | ✅ |
|
|
403
|
-
| 22 | 数据分析 | observer/metric + querier/aggregate | ✅ |
|
|
404
|
-
| 23 | SEO 生成 | generator/report + renderer/template | ✅ |
|
|
405
|
-
| 24 | 多语言翻译 | executor/http 调翻译 API | 🔗 |
|
|
406
|
-
|
|
407
|
-
**纯模块覆盖**: 24 个功能点中 22/24 = **92%**,SEO 和翻译需少量自定义
|
|
408
|
-
|
|
409
|
-
---
|
|
410
|
-
|
|
411
|
-
## 汇总
|
|
412
|
-
|
|
413
|
-
### 各 APP 纯模块覆盖度
|
|
414
|
-
|
|
415
|
-
| APP 类型 | 功能点总数 | 模块覆盖 | 需 executor/script |
|
|
416
|
-
|---------|----------|---------|---------------------|
|
|
417
|
-
| OA 企业管理系统 | 23 | **22 (96%)** | 0 |
|
|
418
|
-
| 内容管理 CMS | 24 | **23 (96%)** | 0 |
|
|
419
|
-
| 聊天 IM | 20 | **19 (95%)** | 1 |
|
|
420
|
-
| 论坛 BBS | 19 | **18 (95%)** | 1 |
|
|
421
|
-
| 内容创作/博客 | 24 | **22 (92%)** | 1 |
|
|
422
|
-
| 智能家居 IoT | 23 | **21 (91%)** | 1 |
|
|
423
|
-
| 在线教育 | 22 | **20 (91%)** | 1 |
|
|
424
|
-
| 股票 | 20 | **18 (90%)** | 2 |
|
|
425
|
-
| 外卖 O2O | 24 | **21 (88%)** | 2 |
|
|
426
|
-
| 购物 | 23 | **20 (87%)** | 3 |
|
|
427
|
-
| 视频 | 21 | **18 (86%)** | 2 |
|
|
428
|
-
| 图像处理 | 18 | **15 (83%)** | 2 |
|
|
429
|
-
| **平均** | **22** | **20 (91%)** | **1.3** |
|
|
430
|
-
|
|
431
|
-
### 按场景维度
|
|
432
|
-
|
|
433
|
-
| 场景 | 覆盖度 | 说明 |
|
|
434
|
-
|------|--------|------|
|
|
435
|
-
| 纯 CRUD(增删改查+搜索+分页) | **100%** | manager/redis/mysql/mongodb + querier/* 全覆盖 |
|
|
436
|
-
| CRUD + 校验 + 过滤 | **98%** | validator 12 + filter 5 覆盖绝大部分校验场景 |
|
|
437
|
-
| CRUD + 计算 + 聚合 | **95%** | calculator 8 + querier/aggregate 覆盖大部分 |
|
|
438
|
-
| CRUD + 通知 + 推送 | **95%** | sender 6 + gateway 8 覆盖 |
|
|
439
|
-
| CRUD + 审批/状态流转 | **90%** | state_machine + dispatcher/condition + looper 覆盖 |
|
|
440
|
-
| CRUD + 复杂业务逻辑 | **~80%** | 部分需 rule_engine/state_machine,或 executor/script 兜底 |
|
|
441
|
-
| CRUD + 专业处理(图像/视频) | **~60%** | 走 converter/* 模块,其余靠 executor/http 外部调用 |
|
|
442
|
-
|
|
443
|
-
### 缺口分析
|
|
444
|
-
|
|
445
|
-
| 缺口类型 | 占比 | 典型场景 | 覆盖方式 |
|
|
446
|
-
|---------|------|---------|---------|
|
|
447
|
-
| 自定义业务逻辑 | ~4% | 交易策略、派单算法、考试评分、设备协议 | **executor/custom**(引用外部 .js 文件) |
|
|
448
|
-
| 外部 API 调用 | ~2% | AI 识别、翻译、内容审核 | executor/http 已覆盖 |
|
|
449
|
-
| 模块组合优化 | ~3% | 复杂折扣、SEO 生成、推荐排序 | 现有 calculator + matcher 可更灵活组合 |
|
|
450
|
-
| **合计缺口** | **~9%** | — | 其中 **4% 由 executor/custom 覆盖** |
|
|
451
|
-
|
|
452
|
-
### 核心结论
|
|
453
|
-
|
|
454
|
-
**20 器 137 模块,可支撑 12 种主流 APP 类型的平均 95% 功能点(叠加 executor/custom 后),仅约 2% 纯外部 API 调用无法覆盖。**
|
|
455
|
-
|
|
456
|
-
> 23 个功能缺口项中,15 个可通过 `executor/custom` 引用独立的 `.js` 脚本文件实现(**代码在文件而非 JSON 中,可 require 依赖,支持热重载**),6 个可通过 calculator/matcher 组合优化,仅 2 个(纯外部 API)需 executor/http。
|
|
457
|
-
|
|
458
|
-
按功能复杂度分级:
|
|
459
|
-
|
|
460
|
-
| 层级 | 覆盖度 | 典型场景 | 示例 |
|
|
461
|
-
|------|--------|---------|------|
|
|
462
|
-
| 数据层 CRUD | **100%** | 增删改查、搜索、分页、排序 | 用户管理、商品列表、订单查询 |
|
|
463
|
-
| 业务层校验/过滤 | **98%** | 参数校验、安全过滤、限流 | 注册验证、敏感词过滤、防刷 |
|
|
464
|
-
| 计算/聚合层 | **95%** | 统计、计算、K线、公式 | 销售额统计、KPI 计算 |
|
|
465
|
-
| 通知/推送层 | **95%** | 消息推送、邮件、短信 | 订单通知、告警推送 |
|
|
466
|
-
| 流程/状态层 | **90%** | 审批流、状态机、路由 | 订单状态流转、OA 审批 |
|
|
467
|
-
| 自定义逻辑层 | **100%** | 业务脚本、外部集成 | executor/custom + executor/http |
|
|
468
|
-
| 专业领域层 | **60-86%** | 图像处理、视频转码 | 缩放到 ffmpeg、转码到外部命令 |
|
|
469
|
-
|
|
470
|
-
---
|
|
471
|
-
|
|
472
|
-
## Workflow 组合范式
|
|
473
|
-
|
|
474
|
-
### 常见模块调用链模板
|
|
475
|
-
|
|
476
|
-
```
|
|
477
|
-
# 标准 CRUD 链路
|
|
478
|
-
receiver/http → parser/json → validator/required → manager/mysql → renderer/json
|
|
479
|
-
|
|
480
|
-
# 带过滤的安全链路
|
|
481
|
-
receiver/http → parser/json → filter/rate_limit → filter/sql_inject → validator/type → manager/mongodb
|
|
482
|
-
|
|
483
|
-
# 支付回调链路
|
|
484
|
-
receiver/webhook → parser/json → validator/jwt → gateway/wechat_pay → manager/mysql → sender/gateway
|
|
485
|
-
|
|
486
|
-
# 异步处理链路
|
|
487
|
-
receiver/http → parser/json → manager/queue → looper/retry → looper/batch → observer/log
|
|
488
|
-
|
|
489
|
-
# IoT 数据链路
|
|
490
|
-
receiver/mqtt → matcher/mqtt_topic → parser/json → calculator/average → manager/mongodb → sender/gateway
|
|
491
|
-
|
|
492
|
-
# 内容发布链路
|
|
493
|
-
validator/rbac → filter/sensitive → manager/mongodb → reviewer/quality → looper/schedule → sender/gateway
|
|
494
|
-
|
|
495
|
-
# OA 审批链路
|
|
496
|
-
receiver/http → validator/rbac → dispatcher/condition → executor/state_machine → sender/gateway → observer/audit
|
|
497
|
-
|
|
498
|
-
# 实时通知链路
|
|
499
|
-
receiver/ws → parser/json → matcher/exact → dispatcher/route → sender/mqtt → observer/log
|
|
500
|
-
|
|
501
|
-
# 自定义脚本链路(引用 script/{name}/)
|
|
502
|
-
receiver/http → parser/json → validator/jwt → executor/custom → manager/mongodb → sender/gateway
|
|
503
|
-
|
|
504
|
-
# 并行调度链路(并发执行多个模块)
|
|
505
|
-
receiver/http → parser/json → validator/required → dispatcher/parallel → observer/log
|
|
506
|
-
|
|
507
|
-
# 脚本开发方式
|
|
508
|
-
# 1. 创建 script/{script_name}/ 目录
|
|
509
|
-
# 2. 编写 index.js(导出 main 函数)
|
|
510
|
-
# 3. 编写 script.json(声明 name/title/description/params/returns/options)
|
|
511
|
-
# 4. 工作流中:{ operator: "executor", handler: "custom", params: { name: "script_name", args: {...} } }
|
|
512
|
-
# 5. 调试:{ name: "list" } 可发现所有可用脚本
|
|
513
|
-
```
|
|
514
|
-
|
|
515
|
-
### 20 器典型用法频率统计
|
|
516
|
-
|
|
517
|
-
| 器 | 用法频率(12 种 APP 中出现的功能点次数) | 说明 |
|
|
518
|
-
|---|---------------------------------------|------|
|
|
519
|
-
| receiver | 12/12 | 每种 APP 都需要接收请求 |
|
|
520
|
-
| parser | 12/12 | 数据解析是标配 |
|
|
521
|
-
| validator | 12/12 | 参数校验无处不在 |
|
|
522
|
-
| filter | 10/12 | 安全和过滤 |
|
|
523
|
-
| matcher | 5/12 | 匹配特定场景(IoT、BBS、股票) |
|
|
524
|
-
| dispatcher | 6/12 | 路由分发 |
|
|
525
|
-
| querier | 12/12 | 查询是核心 CRUD 能力 |
|
|
526
|
-
| executor | 12/12 | 执行器(包括 script/http/command + custom 自定义脚本) |
|
|
527
|
-
| calculator | 10/12 | 计算场景广泛 |
|
|
528
|
-
| manager | 12/12 | 数据管理是基础 |
|
|
529
|
-
| looper | 10/12 | 定时/重试/批量 |
|
|
530
|
-
| renderer | 5/12 | 渲染场景(CMS、博客、教育) |
|
|
531
|
-
| sender | 12/12 | 通知推送全覆盖 |
|
|
532
|
-
| gateway | 8/12 | 支付/消息网关 |
|
|
533
|
-
| observer | 12/12 | 审计/日志/监控是标配 |
|
|
534
|
-
| designer | 3/12 | 设计器(CMS、OA) |
|
|
535
|
-
| generator | 5/12 | 生成器(CMS、OA、教育) |
|
|
536
|
-
| reviewer | 4/12 | 审核(CMS、博客) |
|
|
537
|
-
| solidifier | 4/12 | 固化(CMS、教育、IoT) |
|
|
538
|
-
|
|
539
|
-
**核心发现**: 11 个器(receiver/parser/validator/querier/executor/manager/sender/observer/filter/calculator/looper)在 10+ 种 APP 中高频使用,属于**通用基础设施**;其余 9 个器按需接入,属于**特定场景能力**。
|
|
540
|
-
|
|
541
|
-
---
|
|
542
|
-
|
|
543
|
-
## 运行验证
|
|
544
|
-
|
|
545
|
-
内核启动正常,135 个模块全部加载成功:
|
|
546
|
-
|
|
547
|
-
```
|
|
548
|
-
===== operators 树形结构 =====
|
|
549
|
-
receiver: file, http, mqtt, stream, webhook, ws
|
|
550
|
-
parser: csv, form, json, protobuf, xml, yaml
|
|
551
|
-
converter: case, compress, date, encoding, image, type, unit, video
|
|
552
|
-
validator: abac, basic, enum, jwt, length, oauth, params, pattern, range, rbac, required, type
|
|
553
|
-
filter: ip_block, rate_limit, sensitive, spam, sql_inject
|
|
554
|
-
matcher: exact, fuzzy, mqtt_topic, prefix, recommend, regex, route, similarity, wildcard
|
|
555
|
-
dispatcher: condition, load_balance, priority, retry, round_robin, route
|
|
556
|
-
querier: aggregate, condition, paginate, search, sort
|
|
557
|
-
executor: ai_vision, batch_process, command, data_delete, function, http, notify, rule_engine, script, state_machine
|
|
558
|
-
calculator: average, count, formula, indicator, kline, percent, round, sum
|
|
559
|
-
manager: cache, config, file, module, mongodb, mysql, queue, redis, sqlite
|
|
560
|
-
looper: batch, pagination, retry, schedule, watchdog
|
|
561
|
-
renderer: html, json, markdown, template, text
|
|
562
|
-
sender: console, gateway, http, log, mqtt, push, queue
|
|
563
|
-
observer: audit, health, log, metric, performance
|
|
564
|
-
designer: form, layout, module, schema, template, workflow
|
|
565
|
-
generator: api, code, config, report, script
|
|
566
|
-
reviewer: code_review, compliance, image, performance, quality, security, video
|
|
567
|
-
solidifier: archive, backup, compile, deploy, firmware, package
|
|
568
|
-
===============================
|
|
569
|
-
```
|
|
570
|
-
|
|
571
|
-
工作流登录测试通过:
|
|
572
|
-
|
|
573
|
-
```
|
|
574
|
-
=== 测试1: 正确登录 ===
|
|
575
|
-
结果: {"valid":true,"user_id":1,"role":"user"}
|
|
576
|
-
步骤数: 3
|
|
577
|
-
|
|
578
|
-
=== 测试2: 错误密码 ===
|
|
579
|
-
结果: {"valid":false}
|
|
580
|
-
步骤数: 3
|
|
581
|
-
|
|
582
|
-
=== 测试3: 用户不存在 ===
|
|
583
|
-
结果: {"valid":false}
|
|
584
|
-
步骤数: 2
|
|
585
|
-
```
|