chore(repo): consolidate spec artifacts into specs/ and complete README coverage
- Move generated OpenAPI bundles out of dist/ into committed specs/ (specs/openapi.json, specs/openapi.raw.json); source YAML tree moves openapi/ -> specs/openapi/; schemas/workflow-schema.json joins as specs/workflow-schema.json - Update all generators/consumers: bundle-openapi, generate-raw-openapi, check-version-sync, bump-version, export-workflow-schema, packaging/embedded-openapi - Rewrite stale .env.example with current HOSE_* environment variables - Archive stale repo-local enterprise configs (superseded by ~/.config/hose-use/enterprises) out of the repo; root enterprises/ keeps only the tracked example.json plus an explanatory README - Add missing directory READMEs: approval/contact/message/task/events domains, cli/, http/, packaging/ - Fix stale domain doc links in README.domains.md and docs/modules/platform.md
This commit is contained in:
1 parent
6d532fc719
commit
a3b64d8c8d
29 files changed
+177
-28
No files matched your search
@@ -0,0 +1,16 @@
|
||||
# Message 消息域说明
|
||||
|
||||
本域负责系统通知消息的分页查询、过滤合并与已读状态标记。
|
||||
|
||||
## 架构
|
||||
|
||||
- `api.ts`:传输层,负责消息分页拉取与单条已读标记的 HTTP 请求。
|
||||
- `tools.ts`:业务层,提供消息归一化、类型过滤、同实体合并与已读确认等纯函数编排。
|
||||
- `types.ts`:Zod 模式与 TypeScript 类型定义。
|
||||
|
||||
## 关键接口
|
||||
|
||||
- `listMessages`: 分页拉取系统消息(支持已读/未读过滤)
|
||||
- `filterMessages`: 按消息类型过滤
|
||||
- `mergeMessages`: 合并同一实体的重复消息
|
||||
- `readMessage`: 标记单条消息为已读
|
||||
Reference in new issue
Block a user