Files
hose-use/src/domains/contact/README.contact.md
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

16 lines
582 B
Markdown
Raw Permalink 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.
# Contact 通讯录域说明
本域负责企业组织架构(部门树)与员工通讯录检索。
## 架构
- `api.ts`:传输层,负责员工列表的 HTTP 请求与响应校验。
- `tools.ts`:业务层,提供限额保护、关键词检索与按 ID 精确查询的纯函数编排。
- `types.ts`:Zod 模式与 TypeScript 类型定义。
## 关键接口
- `listStaffsProtected`: 分页列出员工(默认限额 `DEFAULT_STAFF_LIST_LIMIT = 20`,防止全量拉取)
- `searchStaffs`: 按姓名/关键词检索员工
- `getStaffById`: 按 ID 获取员工详情