Files
hose-use/src/domains/task/README.task.md
T
gitea a3b64d8c8d 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
2026-10-04 14:00:03 +08:00

15 lines
491 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Task 任务域说明
本域负责待办/已办审批任务流的分页查询与汇总。
## 架构
- `api.ts`:传输层,负责任务分页拉取的 HTTP 请求与响应校验。
- `tools.ts`:业务层,提供任务字段归一化与待办/已办查询编排。
- `types.ts`:Zod 模式与 TypeScript 类型定义。
## 关键接口
- `listTasks`: 分页查询待办(`todo`)/已办(`done`)任务流
- `normalizeTask`: 将合思原生任务字段归一化为 `TaskItem`