diff --git a/.agents/plan/20261117-glossary-project-wide.md b/.agents/plan/20261117-glossary-project-wide.md new file mode 100644 index 0000000..c7cdc6a --- /dev/null +++ b/.agents/plan/20261117-glossary-project-wide.md @@ -0,0 +1,15 @@ +# Plan:术语表改为项目级一份 + +> 日期:2026-11-17 +> 状态:已完成 + +## 约定 + +- 落点:`docs/features/glossary.md`(项目级统一语言) +- 删除各 feature / `_template` 下的 `glossary.md` +- `spec.md` 引用项目级术语表;`ba-write-spec` 维护该文件(增补术语),不再产出 per-feature glossary + +## 验证 + +`PATH_MODE=relative ./agile-team-sdd/install.sh example-project --force` +`./.agents/verify.sh` diff --git a/agile-team-sdd/README.md b/agile-team-sdd/README.md index 83fcfbd..a47caee 100644 --- a/agile-team-sdd/README.md +++ b/agile-team-sdd/README.md @@ -33,7 +33,7 @@ agile-team-sdd/ | 组 | Skill | 作用 | |---|---|---| | **BA** | `ba-grill-me` | 拷问需求,把模糊描述逼成可验收的规格 | -| | `ba-write-spec` | 编写需求规格:字段表、业务规则、权限矩阵、验收标准、双语术语表 | +| | `ba-write-spec` | 编写需求规格:字段表、业务规则、权限矩阵、验收标准;维护项目级术语表 | | | `ba-gen-facts` | 从代码生成/校准事实文档:API、库表、领域模型、专题 | | **TL** | `tl-high-level-design` | 写迭代高阶技术设计(HLD / TRD),确认前不得开 Plan | | **Dev** | `dev-plan` | 实现前写技术方案,等待人工确认 | diff --git a/agile-team-sdd/SKILL.md b/agile-team-sdd/SKILL.md index 1d0d0cf..27f1376 100644 --- a/agile-team-sdd/SKILL.md +++ b/agile-team-sdd/SKILL.md @@ -17,7 +17,7 @@ description: 安装 Agile Team SDD 技能套件(17 个 skill,覆盖 BA/TL/ | Skill | 作用 | 触发时机 | |---|---|---| | `ba-grill-me` | 拷问需求,把模糊描述逼成可验收的规格 | 需求含糊、有多种理解时,写规格之前 | -| `ba-write-spec` | 编写需求规格(字段表、业务规则、权限、验收标准、双语术语表) | 需求已澄清,落成 `docs/features/<迭代>/-/spec.md` + `glossary.md` | +| `ba-write-spec` | 编写需求规格(字段表、业务规则、权限、验收标准),维护项目级术语表 | 需求已澄清,落成 `docs/features/<迭代>/-/spec.md`;术语写入 `docs/features/glossary.md` | | `ba-gen-facts` | 从代码生成/校准事实文档(API、库表、领域模型) | 实现变了,`docs/facts/` 与代码不一致 | ### 开发 diff --git a/agile-team-sdd/catalog.json b/agile-team-sdd/catalog.json index 6c25d44..59496f9 100644 --- a/agile-team-sdd/catalog.json +++ b/agile-team-sdd/catalog.json @@ -11,11 +11,11 @@ }, { "name": "ba-write-spec", - "description": "编写需求规格说明书(字段表、业务规则、权限、验收标准、双语术语表)", + "description": "编写需求规格说明书(字段表、业务规则、权限、验收标准),并维护项目级双语术语表", "when": "需求已澄清,需要落成 docs/features/<迭代>/-/spec.md 时", "produces": [ "docs/features/<迭代>/-/spec.md", - "docs/features/<迭代>/-/glossary.md" + "docs/features/glossary.md" ], "dependsOn": [ "ba-grill-me" diff --git a/agile-team-sdd/install.sh b/agile-team-sdd/install.sh index 0d9a7f2..d4eb545 100755 --- a/agile-team-sdd/install.sh +++ b/agile-team-sdd/install.sh @@ -145,6 +145,7 @@ PAIRS=( "TEST_CMD_FRONTEND=$TEST_CMD_FRONTEND" "SPEC_TEMPLATE=$(proj_path "$FEATURES_DIR/_template/spec.md")" "PLAN_TEMPLATE=$(proj_path "$FEATURES_DIR/_template/plan.md")" + "GLOSSARY_FILE=$(proj_path "$FEATURES_DIR/glossary.md")" "DOMAIN_MODEL_DOC=$(proj_path "$FACTS_DIR/domain-model.md")" "API_SPEC=$(proj_path "$FACTS_DIR/api.yaml")" "DB_SCHEMA_DOC=$(proj_path "$FACTS_DIR/db-schema.md")" diff --git a/agile-team-sdd/placeholders.md b/agile-team-sdd/placeholders.md index 04677c2..f2500b6 100644 --- a/agile-team-sdd/placeholders.md +++ b/agile-team-sdd/placeholders.md @@ -35,6 +35,7 @@ | `{{RELEASES_DIR}}` | 发布清单目录 | `docs/releases` | `RELEASES_DIR` | | `{{SPEC_TEMPLATE}}` | 需求规格模板 | `docs/features/_template/spec.md` | — | | `{{PLAN_TEMPLATE}}` | 技术方案模板 | `docs/features/_template/plan.md` | — | +| `{{GLOSSARY_FILE}}` | 项目级双语术语表 | `docs/features/glossary.md` | — | | `{{DOMAIN_MODEL_DOC}}` | 领域模型文档 | `docs/facts/domain-model.md` | — | | `{{API_SPEC}}` | API 定义 | `docs/facts/api.yaml` | — | | `{{DB_SCHEMA_DOC}}` | 数据库规格 | `docs/facts/db-schema.md` | — | diff --git a/agile-team-sdd/skills/ba-write-spec-template/SKILL.md b/agile-team-sdd/skills/ba-write-spec-template/SKILL.md index 4d38f07..98d1e57 100644 --- a/agile-team-sdd/skills/ba-write-spec-template/SKILL.md +++ b/agile-team-sdd/skills/ba-write-spec-template/SKILL.md @@ -1,6 +1,6 @@ --- name: ba-write-spec-template -description: 编写需求规格说明书(字段表、业务规则、权限矩阵、验收标准、双语术语表 glossary.md)。当需求已澄清,需要把需求落成 docs/features/<迭代>/-/spec.md 时使用。 +description: 编写需求规格说明书(字段表、业务规则、权限矩阵、验收标准),并维护项目级双语术语表。当需求已澄清,需要把需求落成 docs/features/<迭代>/-/spec.md 时使用。 --- @@ -16,17 +16,18 @@ description: 编写需求规格说明书(字段表、业务规则、权限矩 - 需求已经过 `ba-grill-me` 澄清,阻塞项都有结论 - 已读过 `{{SPEC_TEMPLATE}}`(规格模板)与 `{{AGENTS_FILE}}` - 已查过 `{{FACTS_DIR}}/` 下的事实文档,避免和现状冲突 +- 已读过项目级术语表 `{{GLOSSARY_FILE}}` ## 输出位置 -`{{FEATURES_DIR}}/<迭代>/-/spec.md` -同目录还必须产出 `glossary.md`(本 feature 双语术语表)。 +`{{FEATURES_DIR}}/<迭代>/-/spec.md` - 文件夹名用 **JIRA 风格大写编码** + slug(如 `ACC-account`、`BKG-booking`) -- 规格文件固定为目录内的 `spec.md`;术语表固定为同目录 `glossary.md` -- 从 `{{SPEC_TEMPLATE}}` 复制起步;同目录可放 `plan.md` / `plan-{slug}.md` 与 `glossary.md` 骨架 +- 规格文件固定为目录内的 `spec.md` +- 从 `{{SPEC_TEMPLATE}}` 复制起步;同目录可放 `plan.md` / `plan-{slug}.md` - 一个能力一个文件夹,不要把多个模块塞进一份 spec -- 更新已有模块时基于当前 `spec.md` 改,写明基线版本与目标版本;同步维护术语表 +- 更新已有模块时基于当前 `spec.md` 改,写明基线版本与目标版本 +- **术语表不按 feature 拆分**:新增/变更术语写入项目级 `{{GLOSSARY_FILE}}` ## 各章节怎么写 @@ -36,18 +37,18 @@ description: 编写需求规格说明书(字段表、业务规则、权限矩 - 目标:做完之后什么变了 - 范围:**明确写出"不做什么"** —— 这一节最容易被跳过,也最容易吵架 -### 术语表 `glossary.md` +### 项目术语表 `{{GLOSSARY_FILE}}` -与 `spec.md` 同目录,表头固定: +全项目一份,表头固定: | 中文 | 英文 | 说明(可选) | |---|---|---| | 备注 | remark | | -- 从 §2.3 业务对象、§5 字段表、角色/状态提炼本 feature 统一语言(Ubiquitous Language) +- 从本 feature 的 §2.3 业务对象、§5 字段表、角色/状态提炼术语,**追加或更新**到项目术语表(去重,不另建 feature 目录下的 glossary) - 英文用简洁业务词(如 `Account`、`BookingOrder`),不强制代码标识 -- `spec.md` §2 附近加一行引用同目录术语表(文案:`术语表见` + 指向 `glossary.md` 的相对链接) -- 无新增术语时可保留表头 +「无」一行 +- `spec.md` §2 附近引用项目术语表(相对路径指向 `{{GLOSSARY_FILE}}`,例如 feature 目录下写「术语表见」+ 链到 `../../glossary.md`) +- 本轮无新增术语时不必改术语表,但仍须在 spec 中保留引用 ### §2~3 功能与权限 @@ -121,7 +122,7 @@ AC-001:正常创建 ## 自检清单 -- [ ] 术语表 `glossary.md` 已写,中英对照,且 `spec.md` 已引用 +- [ ] `spec.md` 已引用项目术语表;本轮新术语已写入 `{{GLOSSARY_FILE}}`(中英对照) - [ ] 每条规则有编号、适用场景、条件、动作 - [ ] 每条验收标准有编号,且可测 - [ ] 字段表里枚举值写全 diff --git a/example-project/.agents/skills/ba-write-spec/SKILL.md b/example-project/.agents/skills/ba-write-spec/SKILL.md index ed87de9..008ac7c 100644 --- a/example-project/.agents/skills/ba-write-spec/SKILL.md +++ b/example-project/.agents/skills/ba-write-spec/SKILL.md @@ -1,6 +1,6 @@ --- name: ba-write-spec -description: 编写需求规格说明书(字段表、业务规则、权限矩阵、验收标准、双语术语表 glossary.md)。当需求已澄清,需要把需求落成 docs/features/<迭代>/-/spec.md 时使用。 +description: 编写需求规格说明书(字段表、业务规则、权限矩阵、验收标准),并维护项目级双语术语表。当需求已澄清,需要把需求落成 docs/features/<迭代>/-/spec.md 时使用。 --- # BA:编写需求规格 @@ -12,17 +12,18 @@ description: 编写需求规格说明书(字段表、业务规则、权限矩 - 需求已经过 `ba-grill-me` 澄清,阻塞项都有结论 - 已读过 `docs/features/_template/spec.md`(规格模板)与 `AGENTS.md` - 已查过 `docs/facts/` 下的事实文档,避免和现状冲突 +- 已读过项目级术语表 `docs/features/glossary.md` ## 输出位置 -`docs/features/<迭代>/-/spec.md` -同目录还必须产出 `glossary.md`(本 feature 双语术语表)。 +`docs/features/<迭代>/-/spec.md` - 文件夹名用 **JIRA 风格大写编码** + slug(如 `ACC-account`、`BKG-booking`) -- 规格文件固定为目录内的 `spec.md`;术语表固定为同目录 `glossary.md` -- 从 `docs/features/_template/spec.md` 复制起步;同目录可放 `plan.md` / `plan-{slug}.md` 与 `glossary.md` 骨架 +- 规格文件固定为目录内的 `spec.md` +- 从 `docs/features/_template/spec.md` 复制起步;同目录可放 `plan.md` / `plan-{slug}.md` - 一个能力一个文件夹,不要把多个模块塞进一份 spec -- 更新已有模块时基于当前 `spec.md` 改,写明基线版本与目标版本;同步维护术语表 +- 更新已有模块时基于当前 `spec.md` 改,写明基线版本与目标版本 +- **术语表不按 feature 拆分**:新增/变更术语写入项目级 `docs/features/glossary.md` ## 各章节怎么写 @@ -32,18 +33,18 @@ description: 编写需求规格说明书(字段表、业务规则、权限矩 - 目标:做完之后什么变了 - 范围:**明确写出"不做什么"** —— 这一节最容易被跳过,也最容易吵架 -### 术语表 `glossary.md` +### 项目术语表 `docs/features/glossary.md` -与 `spec.md` 同目录,表头固定: +全项目一份,表头固定: | 中文 | 英文 | 说明(可选) | |---|---|---| | 备注 | remark | | -- 从 §2.3 业务对象、§5 字段表、角色/状态提炼本 feature 统一语言(Ubiquitous Language) +- 从本 feature 的 §2.3 业务对象、§5 字段表、角色/状态提炼术语,**追加或更新**到项目术语表(去重,不另建 feature 目录下的 glossary) - 英文用简洁业务词(如 `Account`、`BookingOrder`),不强制代码标识 -- `spec.md` §2 附近加一行引用同目录术语表(文案:`术语表见` + 指向 `glossary.md` 的相对链接) -- 无新增术语时可保留表头 +「无」一行 +- `spec.md` §2 附近引用项目术语表(相对路径指向 `docs/features/glossary.md`,例如 feature 目录下写「术语表见」+ 链到 `../../glossary.md`) +- 本轮无新增术语时不必改术语表,但仍须在 spec 中保留引用 ### §2~3 功能与权限 @@ -117,7 +118,7 @@ AC-001:正常创建 ## 自检清单 -- [ ] 术语表 `glossary.md` 已写,中英对照,且 `spec.md` 已引用 +- [ ] `spec.md` 已引用项目术语表;本轮新术语已写入 `docs/features/glossary.md`(中英对照) - [ ] 每条规则有编号、适用场景、条件、动作 - [ ] 每条验收标准有编号,且可测 - [ ] 字段表里枚举值写全 diff --git a/example-project/AGENTS.md b/example-project/AGENTS.md index 4c5c67b..09c50c5 100644 --- a/example-project/AGENTS.md +++ b/example-project/AGENTS.md @@ -235,7 +235,8 @@ cd e2e && npm run test:dev # 只跑开发自测用例 ``` docs/ ├── features/ # 需求规格 + 技术方案(过程文档) -│ ├── _template/ # spec.md + plan.md + glossary.md(plan 含粗实施步骤) +│ ├── glossary.md # 项目级双语术语表 +│ ├── _template/ # spec.md + plan.md(plan 含粗实施步骤) │ ├── _chores/ # 无关联 feature 的横切 plan │ └── iteration1/ # 咨询师预约平台样例 │ ├── README.md diff --git a/example-project/docs/README.md b/example-project/docs/README.md index d9c3e94..a9cff6d 100644 --- a/example-project/docs/README.md +++ b/example-project/docs/README.md @@ -37,7 +37,7 @@ - 需求规格与 Plan **定稿后不改**;同一 feature 的二次改造新建 `plan-{slug}.md`。 - 事实文档必须与代码一致;改了代码就要改文档。 -- 新建需求:复制 `features/_template/` 为 `features/<迭代>/-/`,再改 `spec.md` / `glossary.md` / `plan.md`。 +- 新建需求:复制 `features/_template/` 为 `features/<迭代>/-/`,再改 `spec.md` / `plan.md`;新术语写入 `features/glossary.md`。 - 每个迭代应有 `features/<迭代>/high-level-design.md`;**确认前不得写 feature Plan**。 ## 同步检查点 diff --git a/example-project/docs/features/README.md b/example-project/docs/features/README.md index b1e569c..b9aee80 100644 --- a/example-project/docs/features/README.md +++ b/example-project/docs/features/README.md @@ -4,15 +4,15 @@ ``` docs/features/ -├── _template/ # 模板:spec.md + plan.md + glossary.md +├── glossary.md # 项目级双语术语表(统一语言) +├── _template/ # 模板:spec.md + plan.md ├── _chores/ # 无关联 feature 的横切 plan │ └── plan-{slug}.md └── iteration1/ ├── README.md ├── high-level-design.md # 迭代高阶技术设计(HLD / TRD,人工确认) ├── ACC-account/ - │ ├── spec.md # 业务规格 - │ ├── glossary.md # 本 feature 双语术语表(统一语言) + │ ├── spec.md # 业务规格(引用 ../../glossary.md) │ ├── plan.md # 主技术方案(粗实施步骤;HLD 确认后) │ ├── plan-progress.md # dev-build 细化进度(随实现更新) │ └── plan-{slug}.md # 多份方案时(对应 plan-{slug}-progress.md) @@ -20,7 +20,7 @@ docs/features/ ``` 约定:每个迭代目录应有 `high-level-design.md`;**确认前不得写 feature Plan**。 -每个 feature 目录应有 `glossary.md`(中文 | 英文 | 说明);`spec.md` 在 §2 附近引用之。 +项目级 `glossary.md`(中文 | 英文 | 说明)一份;`spec.md` 在 §2 附近引用之。 Plan 只写粗「实施步骤」;`dev-build` 写同目录 `{planStem}-progress.md` 细 checklist 并勾选。 | 编码 | 文件夹 | 含义 | diff --git a/example-project/docs/features/_template/glossary.md b/example-project/docs/features/_template/glossary.md deleted file mode 100644 index 17f2038..0000000 --- a/example-project/docs/features/_template/glossary.md +++ /dev/null @@ -1,7 +0,0 @@ -# 术语表 - -> 本 feature 统一语言(Ubiquitous Language)。规格、Plan、代码命名应对齐本表。 - -| 中文 | 英文 | 说明(可选) | -|---|---|---| -| 备注 | remark | 示例行;无新增术语时可改为一行「无」 | diff --git a/example-project/docs/features/_template/spec.md b/example-project/docs/features/_template/spec.md index d93413d..51f2904 100644 --- a/example-project/docs/features/_template/spec.md +++ b/example-project/docs/features/_template/spec.md @@ -49,7 +49,7 @@ NEW / UPDATE ## 2. 功能说明 -术语表见 [glossary.md](./glossary.md)。 +术语表见 [项目术语表](../glossary.md)。 ### 2.1 功能概述 diff --git a/example-project/docs/features/glossary.md b/example-project/docs/features/glossary.md new file mode 100644 index 0000000..0d616c7 --- /dev/null +++ b/example-project/docs/features/glossary.md @@ -0,0 +1,332 @@ +# 术语表 + +> 项目级统一语言(Ubiquitous Language)。各 feature 的规格、Plan、代码命名应对齐本表。 +> 由 `ba-write-spec` 在写/改规格时维护;新增术语追加到本文件,不按 feature 拆分。 + +| 中文 | 英文 | 说明(可选) | +|---|---|---| +| 咨询师 | consultant / CONSULTANT | 角色 | +| 管理员 | admin / ADMIN | 角色 | +| 终端用户 | end user / USER | 角色 | +| 账号 | Account | 统一账号(手机号、状态、角色集合) | +| 下单 | place order | | +| 不可约 | unavailable | | +| 个人中心 | profile center | | +| 举报 | report | | +| 举报工单 | ReportCase | 举报工单 | +| 优惠券 | coupon | | +| 优惠券使用 | CouponUsage | 优惠券使用 | +| 例外不可约 | SlotException | 例外不可约 | +| 入驻 | onboarding | | +| 入驻申请 | OnboardingApplication | 入驻申请(审核视角) | +| 公开档案 | public profile | | +| 出账 | billing / issue bill | | +| 分类 | Category | 分类与标签树 | +| 协议同意 | AgreementConsent | 协议同意记录 | +| 占用 | occupy / lock | | +| 可预约时段 | AvailableSlot | 可预约时段(只读展示) | +| 周固定可约模板 | WeeklySlotTemplate | 周固定可约模板 | +| 咨询小结 | ConsultSummary | 咨询小结 | +| 咨询师公开档案 | ConsultantPublicProfile | 对外展示的咨询师档案 | +| 咨询师发现 | consultant discovery | | +| 咨询师工作台 | ConsultantDashboard | 工作台指标快照 | +| 咨询师档案 | ConsultantProfile | 对外档案(含草稿/线上版) | +| 咨询师检索条件 | ConsultantSearchQuery | 检索条件 | +| 回调 | callback | | +| 备注 | remark | 通用 | +| 审核 | review / approval | | +| 审计 | audit | | +| 审计日志 | AuditLog | 操作审计 | +| 履约 | fulfillment | | +| 幂等 | idempotency | | +| 投诉 | Complaint | 投诉(用户发起) | +| 拒单 | reject order | | +| 接单 | accept order | | +| 提现 | withdrawal | | +| 提现申请 | WithdrawalRequest | 提现申请 | +| 支付 | payment | | +| 支付单 | Payment | 支付单 | +| 支付回调 | PaymentCallback | 支付/退款回调记录 | +| 收入概览 | IncomeOverview | 收入概览 | +| 收藏咨询师 | FavoriteConsultant | 用户收藏的咨询师 | +| 改期 | reschedule | | +| 改期申请 | RescheduleRequest | 改期申请 | +| 服务协议 | service agreement | | +| 服务费率版本 | FeeRateVersion | 服务费率版本 | +| 标签 | Tag | 分类与标签树 | +| 档期 | schedule | | +| 档案草稿 | profile draft | | +| 检索 | search | | +| 治理 | governance | | +| 用户账号(治理) | UserAccount | 用户治理对象 | +| 用户资料 | UserProfile | 终端用户资料 | +| 站内信 | inbox message | | +| 结算 | settlement | | +| 结算单 | SettlementBill | 月度结算单 | +| 评价 | Review | 咨询评价 | +| 评价摘要 | ReviewSummary | 评价摘要与列表 | +| 资质 | credential | | +| 资质文件 | CredentialFile | 资质文件 | +| 运营 | operations | | +| 运营看板指标 | OpsDashboardMetrics | 看板指标 | +| 退款 | refund | | +| 退款审核 | refund review | | +| 通知 | Notification | 通知消息 | +| 释放 | release | | +| 限流 | rate limit | | +| 限流策略 | RateLimitPolicy | 限流策略 | +| 隐私政策 | privacy policy | | +| 预约 | booking | | +| 预约订单 | BookingOrder | 订单治理对象 | +| 验证码 | verification code | | +| ID | ID | 字段 | +| MIME 类型 | MIME type | 字段 | +| 下单时间 | ordered at | 字段 | +| 下次重试时间 | next retry at | 字段 | +| 专业度评分 | professional rating | 字段 | +| 业务 ID | business ID | 字段 | +| 业务单 ID | business order ID | 字段 | +| 业务类型 | business type | 字段 | +| 个人简介 | bio | 字段 | +| 举报 ID | report ID | 字段 | +| 举报人 ID | reporter ID | 字段 | +| 举报状态 | report status | 字段 | +| 举报类型 | report type | 字段 | +| 举报说明 | report description | 字段 | +| 乐观锁版本 | optimistic lock version | 字段 | +| 事件类型 | event type | 字段 | +| 今日咨询数 | today consultation count | 字段 | +| 今日待办 | today's todos | 字段 | +| 今日收入 | today's income | 字段 | +| 从业年限 | years of practice | 字段 | +| 价格区间 | price range | 字段 | +| 优惠券 ID | coupon ID | 字段 | +| 优惠金额 | discount amount | 字段 | +| 例外 ID | exception ID | 字段 | +| 例外日期 | exception date | 字段 | +| 例外类型 | exception type | 字段 | +| 停用原因 | disabled reason | 字段 | +| 公告列表 | announcements | 字段 | +| 关键词 | keyword | 字段 | +| 内容 | content | 字段 | +| 冻结金额 | frozen amount | 字段 | +| 净收入 | net income | 字段 | +| 出账时间 | issued at | 字段 | +| 分类 ID | category ID | 字段 | +| 分类名 | category name | 字段 | +| 分类状态 | category status | 字段 | +| 分类编码 | category code | 字段 | +| 分类集合 | categories | 字段 | +| 创建人 | created by | 字段 | +| 创建时间 | created at | 字段 | +| 剩余容量 | remaining capacity | 字段 | +| 动作编码 | action code | 字段 | +| 协议版本 | agreement version | 字段 | +| 协议类型 | agreement type | 字段 | +| 单次价格 | session price | 字段 | +| 原因说明 | reason note | 字段 | +| 原时段 ID | original slot ID | 字段 | +| 取消原因 | cancel reason | 字段 | +| 取消时间 | cancelled at | 字段 | +| 变更前后 | before/after snapshot | 字段 | +| 可提现余额 | withdrawable balance | 字段 | +| 可约日期 | available date | 字段 | +| 同意.用户账号 ID | consent account ID | 字段 | +| 同意时间 | accepted at | 字段 | +| 同意记录 ID | consent ID | 字段 | +| 后续建议 | recommendations | 字段 | +| 周期开始 | period start | 字段 | +| 咨询主题 | topic | 字段 | +| 咨询师 ID | consultant ID | 字段 | +| 咨询师数 | consultant count | 字段 | +| 回调单号 | callback ID | 字段 | +| 回调类型 | callback type | 字段 | +| 城市 | city | 字段 | +| 城市编码 | city code | 字段 | +| 处理状态 | process status | 字段 | +| 处理结论 | resolution | 字段 | +| 失效时间 | expire at | 字段 | +| 失败原因 | failure reason | 字段 | +| 失败码 | failure code | 字段 | +| 头像 | avatar | 字段 | +| 头像地址 | avatar URL | 字段 | +| 头像文件 ID | avatar file ID | 字段 | +| 姓名 | full name | 字段 | +| 存储地址 | storage URL | 字段 | +| 安全状态 | security status | 字段 | +| 完成时间 | completed at | 字段 | +| 审核人 | reviewer | 字段 | +| 审核时间 | reviewed at | 字段 | +| 审核状态 | review status | 字段 | +| 审核结果 | review result | 字段 | +| 审核说明 | review note | 字段 | +| 审计日志 ID | audit log ID | 字段 | +| 容量 | capacity | 字段 | +| 对象 ID | target ID | 字段 | +| 对象类型 | target type | 字段 | +| 对象类型/ID | target type/ID | 字段 | +| 小结 ID | summary ID | 字段 | +| 小结.订单 ID | order ID | 字段 | +| 尝试次数 | attempt count | 字段 | +| 展示姓名 | display name | 字段 | +| 已占数量 | occupied count | 字段 | +| 已完成预约数 | completed booking count | 字段 | +| 已读时间 | read at | 字段 | +| 平均评分 | average rating | 字段 | +| 应付金额 | payable amount | 字段 | +| 应结金额 | net payable | 字段 | +| 开始时间 | start at | 字段 | +| 待处理数 | pending count | 字段 | +| 待结算金额 | pending settlement amount | 字段 | +| 总评分 | overall rating | 字段 | +| 成交额 | GMV | 字段 | +| 截止日期 | end date | 字段 | +| 手机号 | phone number | 字段 | +| 手机验证时间 | phone verified at | 字段 | +| 执业身份 | practice identity | 字段 | +| 批量模式 | batch mode | 字段 | +| 投诉 ID | complaint ID | 字段 | +| 投诉.订单 ID | order ID | 字段 | +| 投诉状态 | complaint status | 字段 | +| 投诉类型 | complaint type | 字段 | +| 投诉说明 | complaint description | 字段 | +| 投递状态 | delivery status | 字段 | +| 抵扣金额 | discount amount | 字段 | +| 拒绝原因 | reject reason | 字段 | +| 拒绝说明 | reject note | 字段 | +| 排序 | sort | 字段 | +| 排序值 | sort order | 字段 | +| 接收人 ID | recipient ID | 字段 | +| 接收时间 | received at | 字段 | +| 提交时间 | submitted at | 字段 | +| 提现.完成时间 | withdrawal completed at | 字段 | +| 提现单 ID | withdrawal ID | 字段 | +| 提现状态 | withdrawal status | 字段 | +| 提现金额 | withdrawal amount | 字段 | +| 擅长标签 | expertise tags | 字段 | +| 擅长领域 | expertise area | 字段 | +| 操作人 | operator | 字段 | +| 操作原因 | action reason | 字段 | +| 操作时间 | operated at | 字段 | +| 操作类型 | operation type | 字段 | +| 支付单 ID | payment ID | 字段 | +| 支付截止时间 | pay by | 字段 | +| 支付时间 | paid at | 字段 | +| 支付渠道 | payment channel | 字段 | +| 支付状态 | payment status | 字段 | +| 支付金额 | payment amount | 字段 | +| 收款账户快照 | payout account snapshot | 字段 | +| 收藏 ID | favorite ID | 字段 | +| 收藏.用户账号 ID | favorite account ID | 字段 | +| 收藏时间 | favorited at | 字段 | +| 改期.订单 ID | order ID | 字段 | +| 改期原因 | reschedule reason | 字段 | +| 改期申请 ID | reschedule request ID | 字段 | +| 数据请求类型 | data request type | 字段 | +| 文件 ID | file ID | 字段 | +| 文件大小 | file size | 字段 | +| 文件用途 | file purpose | 字段 | +| 文字评价 | review content | 字段 | +| 新时段 ID | proposed slot ID | 字段 | +| 日志 ID | log ID | 字段 | +| 时段 | time slot | 字段 | +| 时段 ID | slot ID | 字段 | +| 时长 | duration | 字段 | +| 明细 ID | line ID | 字段 | +| 明细.完成时间 | line completed at | 字段 | +| 星期 | weekday | 字段 | +| 星期集合 | weekdays | 字段 | +| 是否已收藏 | is favorited | 字段 | +| 昵称 | nickname | 字段 | +| 更新时间 | updated at | 字段 | +| 最低评分 | min rating | 字段 | +| 最近登录时间 | last login at | 字段 | +| 服务价格 | service price | 字段 | +| 服务分类 | service category | 字段 | +| 服务单价 | unit price | 字段 | +| 服务说明 | service description | 字段 | +| 服务费 | platform fee | 字段 | +| 服务费率 | service fee rate | 字段 | +| 期望定价 | expected price | 字段 | +| 本月收入 | month income | 字段 | +| 本月订单数 | month order count | 字段 | +| 来源 | source | 字段 | +| 来源 IP | source IP | 字段 | +| 标签 ID | tag ID | 字段 | +| 标签名 | tag name | 字段 | +| 标签状态 | tag status | 字段 | +| 标题 | title | 字段 | +| 核销状态 | redemption status | 字段 | +| 档案版本 | profile version | 字段 | +| 沟通评分 | communication rating | 字段 | +| 治理动作 | governance action | 字段 | +| 渠道 | channel | 字段 | +| 渠道流水号 | gateway trade no | 字段 | +| 父分类 ID | parent category ID | 字段 | +| 状态 | status | 字段 | +| 环比 | period-over-period | 字段 | +| 生成时间 | generated at | 字段 | +| 生效时间 | effective at | 字段 | +| 用户 ID | user ID | 字段 | +| 用户展示名 | user display name | 字段 | +| 用户数 | user count | 字段 | +| 用户账号 ID | user account ID | 字段 | +| 申请 ID | application ID | 字段 | +| 申请时间 | applied at | 字段 | +| 申请状态 | request status | 字段 | +| 确认截止时间 | confirm by | 字段 | +| 确认时间 | confirmed at | 字段 | +| 禁用原因 | disabled reason | 字段 | +| 窗口秒数 | window seconds | 字段 | +| 策略键 | policy key | 字段 | +| 线上版本号 | published version | 字段 | +| 结束时间 | end at | 字段 | +| 结果 | result | 字段 | +| 结算单 ID | settlement bill ID | 字段 | +| 统计周期 | stats period | 字段 | +| 网关 | gateway | 字段 | +| 网关流水号 | gateway trade no | 字段 | +| 联系手机号 | contact phone | 字段 | +| 角色集合 | roles | 字段 | +| 订单 ID | order ID | 字段 | +| 订单号 | order number | 字段 | +| 订单总额 | order total | 字段 | +| 订单状态 | order status | 字段 | +| 订单量 | order volume | 字段 | +| 订单金额 | order amount | 字段 | +| 认证标识 | verified badge | 字段 | +| 记录 ID | record ID | 字段 | +| 证件号码 | ID number | 字段 | +| 证据文件 | evidence files | 字段 | +| 评价 ID | review ID | 字段 | +| 评价.订单 ID | order ID | 字段 | +| 评价内容 | review content | 字段 | +| 评价数 | review count | 字段 | +| 评价时间 | reviewed at | 字段 | +| 语言 | locale | 字段 | +| 账单状态 | bill status | 字段 | +| 账号 ID | account ID | 字段 | +| 账期 | billing period | 字段 | +| 费率版本 | fee rate version | 字段 | +| 资料更新时间 | profile updated at | 字段 | +| 起始日期 | start date | 字段 | +| 退款单 ID | refund ID | 字段 | +| 退款原因 | refund reason | 字段 | +| 退款状态 | refund status | 字段 | +| 退款率 | refund rate | 字段 | +| 退款金额 | refund amount | 字段 | +| 通知 ID | notification ID | 字段 | +| 邮箱 | email | 字段 | +| 金额 | amount | 字段 | +| 链路 ID | trace ID | 字段 | +| 链路追踪 ID | trace ID | 字段 | +| 问题描述 | problem description | 字段 | +| 限额 | limit | 字段 | +| 页大小 | page size | 字段 | +| 页码 | page | 字段 | +| 预约开始时间 | slot start at | 字段 | +| 驳回原因 | reject reason | 字段 | +| 驳回原因码 | reject reason code | 字段 | +| 驳回说明 | reject note | 字段 | +| 验签结果 | signature valid | 字段 | +| 默认容量 | default capacity | 字段 | diff --git a/example-project/docs/features/iteration1/ACC-account/glossary.md b/example-project/docs/features/iteration1/ACC-account/glossary.md deleted file mode 100644 index 91bf838..0000000 --- a/example-project/docs/features/iteration1/ACC-account/glossary.md +++ /dev/null @@ -1,44 +0,0 @@ -# 术语表 - -> 本 feature 统一语言(Ubiquitous Language)。规格、Plan、代码命名应对齐本表。 - -| 中文 | 英文 | 说明(可选) | -|---|---|---| -| 账号 | Account | 统一账号(手机号、状态、角色集合) | -| 用户资料 | UserProfile | 终端用户资料 | -| 收藏咨询师 | FavoriteConsultant | 用户收藏的咨询师 | -| 协议同意 | AgreementConsent | 协议同意记录 | -| ID | ID | 字段 | -| 手机号 | phone number | 字段 | -| 角色集合 | roles | 字段 | -| 状态 | status | 字段 | -| 手机验证时间 | phone verified at | 字段 | -| 最近登录时间 | last login at | 字段 | -| 禁用原因 | disabled reason | 字段 | -| 创建时间 | created at | 字段 | -| 更新时间 | updated at | 字段 | -| 账号 ID | account ID | 字段 | -| 昵称 | nickname | 字段 | -| 头像地址 | avatar URL | 字段 | -| 邮箱 | email | 字段 | -| 城市编码 | city code | 字段 | -| 语言 | locale | 字段 | -| 资料更新时间 | profile updated at | 字段 | -| 收藏 ID | favorite ID | 字段 | -| 收藏.用户账号 ID | favorite account ID | 字段 | -| 咨询师 ID | consultant ID | 字段 | -| 收藏时间 | favorited at | 字段 | -| 同意记录 ID | consent ID | 字段 | -| 同意.用户账号 ID | consent account ID | 字段 | -| 协议类型 | agreement type | 字段 | -| 协议版本 | agreement version | 字段 | -| 同意时间 | accepted at | 字段 | -| 来源 IP | source IP | 字段 | -| 终端用户 | end user / USER | 角色 | -| 咨询师 | consultant / CONSULTANT | 角色 | -| 管理员 | admin / ADMIN | 角色 | -| 验证码 | verification code | | -| 个人中心 | profile center | | -| 服务协议 | service agreement | | -| 隐私政策 | privacy policy | | -| 备注 | remark | 通用 | diff --git a/example-project/docs/features/iteration1/ACC-account/spec.md b/example-project/docs/features/iteration1/ACC-account/spec.md index 5b9ba8b..62399b2 100644 --- a/example-project/docs/features/iteration1/ACC-account/spec.md +++ b/example-project/docs/features/iteration1/ACC-account/spec.md @@ -56,7 +56,7 @@ NEW ## 2. 功能说明 -术语表见 [glossary.md](./glossary.md)。 +术语表见 [项目术语表](../../glossary.md)。 ### 2.1 功能概述 diff --git a/example-project/docs/features/iteration1/ADM-admin-ops/glossary.md b/example-project/docs/features/iteration1/ADM-admin-ops/glossary.md deleted file mode 100644 index 326906d..0000000 --- a/example-project/docs/features/iteration1/ADM-admin-ops/glossary.md +++ /dev/null @@ -1,66 +0,0 @@ -# 术语表 - -> 本 feature 统一语言(Ubiquitous Language)。规格、Plan、代码命名应对齐本表。 - -| 中文 | 英文 | 说明(可选) | -|---|---|---| -| 运营看板指标 | OpsDashboardMetrics | 看板指标 | -| 入驻申请 | OnboardingApplication | 入驻申请(审核视角) | -| 分类 | Category | 分类与标签树 | -| 标签 | Tag | 分类与标签树 | -| 用户账号(治理) | UserAccount | 用户治理对象 | -| 预约订单 | BookingOrder | 订单治理对象 | -| 举报工单 | ReportCase | 举报工单 | -| 审计日志 | AuditLog | 操作审计 | -| 统计周期 | stats period | 字段 | -| 周期开始 | period start | 字段 | -| 用户数 | user count | 字段 | -| 咨询师数 | consultant count | 字段 | -| 订单量 | order volume | 字段 | -| 成交额 | GMV | 字段 | -| 退款率 | refund rate | 字段 | -| 环比 | period-over-period | 字段 | -| 申请 ID | application ID | 字段 | -| 审核结果 | review result | 字段 | -| 驳回原因 | reject reason | 字段 | -| 审核说明 | review note | 字段 | -| 审核人 | reviewer | 字段 | -| 审核时间 | reviewed at | 字段 | -| 分类 ID | category ID | 字段 | -| 父分类 ID | parent category ID | 字段 | -| 分类编码 | category code | 字段 | -| 分类名 | category name | 字段 | -| 排序值 | sort order | 字段 | -| 分类状态 | category status | 字段 | -| 标签 ID | tag ID | 字段 | -| 标签名 | tag name | 字段 | -| 标签状态 | tag status | 字段 | -| 用户账号 ID | user account ID | 字段 | -| 治理动作 | governance action | 字段 | -| 操作原因 | action reason | 字段 | -| 退款单 ID | refund ID | 字段 | -| 订单 ID | order ID | 字段 | -| 退款金额 | refund amount | 字段 | -| 退款原因 | refund reason | 字段 | -| 退款状态 | refund status | 字段 | -| 举报 ID | report ID | 字段 | -| 举报人 ID | reporter ID | 字段 | -| 对象类型 | target type | 字段 | -| 对象 ID | target ID | 字段 | -| 举报类型 | report type | 字段 | -| 举报说明 | report description | 字段 | -| 证据文件 | evidence files | 字段 | -| 举报状态 | report status | 字段 | -| 处理结论 | resolution | 字段 | -| 审计日志 ID | audit log ID | 字段 | -| 操作人 | operator | 字段 | -| 操作类型 | operation type | 字段 | -| 对象类型/ID | target type/ID | 字段 | -| 变更前后 | before/after snapshot | 字段 | -| 链路 ID | trace ID | 字段 | -| 操作时间 | operated at | 字段 | -| 运营 | operations | | -| 治理 | governance | | -| 举报 | report | | -| 退款审核 | refund review | | -| 备注 | remark | 通用 | diff --git a/example-project/docs/features/iteration1/ADM-admin-ops/spec.md b/example-project/docs/features/iteration1/ADM-admin-ops/spec.md index 34c230b..9d29195 100644 --- a/example-project/docs/features/iteration1/ADM-admin-ops/spec.md +++ b/example-project/docs/features/iteration1/ADM-admin-ops/spec.md @@ -56,7 +56,7 @@ NEW ## 2. 功能说明 -术语表见 [glossary.md](./glossary.md)。 +术语表见 [项目术语表](../../glossary.md)。 ### 2.1 功能概述 diff --git a/example-project/docs/features/iteration1/BKG-booking/glossary.md b/example-project/docs/features/iteration1/BKG-booking/glossary.md deleted file mode 100644 index 0f02bde..0000000 --- a/example-project/docs/features/iteration1/BKG-booking/glossary.md +++ /dev/null @@ -1,55 +0,0 @@ -# 术语表 - -> 本 feature 统一语言(Ubiquitous Language)。规格、Plan、代码命名应对齐本表。 - -| 中文 | 英文 | 说明(可选) | -|---|---|---| -| 预约订单 | BookingOrder | 预约订单 | -| 支付单 | Payment | 支付单 | -| 优惠券使用 | CouponUsage | 优惠券使用 | -| 评价 | Review | 咨询评价 | -| 投诉 | Complaint | 投诉(用户发起) | -| 订单号 | order number | 字段 | -| 用户 ID | user ID | 字段 | -| 咨询师 | consultant | 字段 | -| 时段 | time slot | 字段 | -| 咨询主题 | topic | 字段 | -| 问题描述 | problem description | 字段 | -| 联系手机号 | contact phone | 字段 | -| 状态 | status | 字段 | -| 服务单价 | unit price | 字段 | -| 优惠金额 | discount amount | 字段 | -| 服务费 | platform fee | 字段 | -| 应付金额 | payable amount | 字段 | -| 优惠券 ID | coupon ID | 字段 | -| 取消原因 | cancel reason | 字段 | -| 下单时间 | ordered at | 字段 | -| 支付时间 | paid at | 字段 | -| 取消时间 | cancelled at | 字段 | -| 支付单 ID | payment ID | 字段 | -| 订单 ID | order ID | 字段 | -| 支付渠道 | payment channel | 字段 | -| 网关流水号 | gateway trade no | 字段 | -| 支付状态 | payment status | 字段 | -| 支付金额 | payment amount | 字段 | -| 支付截止时间 | pay by | 字段 | -| 抵扣金额 | discount amount | 字段 | -| 核销状态 | redemption status | 字段 | -| 评价 ID | review ID | 字段 | -| 评价.订单 ID | order ID | 字段 | -| 总评分 | overall rating | 字段 | -| 专业度评分 | professional rating | 字段 | -| 沟通评分 | communication rating | 字段 | -| 文字评价 | review content | 字段 | -| 评价时间 | reviewed at | 字段 | -| 投诉 ID | complaint ID | 字段 | -| 投诉.订单 ID | order ID | 字段 | -| 投诉类型 | complaint type | 字段 | -| 投诉说明 | complaint description | 字段 | -| 投诉状态 | complaint status | 字段 | -| 预约 | booking | | -| 下单 | place order | | -| 支付 | payment | | -| 优惠券 | coupon | | -| 退款 | refund | | -| 备注 | remark | 通用 | diff --git a/example-project/docs/features/iteration1/BKG-booking/spec.md b/example-project/docs/features/iteration1/BKG-booking/spec.md index e59ad9b..68b0093 100644 --- a/example-project/docs/features/iteration1/BKG-booking/spec.md +++ b/example-project/docs/features/iteration1/BKG-booking/spec.md @@ -57,7 +57,7 @@ NEW ## 2. 功能说明 -术语表见 [glossary.md](./glossary.md)。 +术语表见 [项目术语表](../../glossary.md)。 ### 2.1 功能概述 diff --git a/example-project/docs/features/iteration1/CDC-consultant-discovery/glossary.md b/example-project/docs/features/iteration1/CDC-consultant-discovery/glossary.md deleted file mode 100644 index ddd03f9..0000000 --- a/example-project/docs/features/iteration1/CDC-consultant-discovery/glossary.md +++ /dev/null @@ -1,45 +0,0 @@ -# 术语表 - -> 本 feature 统一语言(Ubiquitous Language)。规格、Plan、代码命名应对齐本表。 - -| 中文 | 英文 | 说明(可选) | -|---|---|---| -| 咨询师公开档案 | ConsultantPublicProfile | 对外展示的咨询师档案 | -| 咨询师检索条件 | ConsultantSearchQuery | 检索条件 | -| 评价摘要 | ReviewSummary | 评价摘要与列表 | -| 可预约时段 | AvailableSlot | 可预约时段(只读展示) | -| 关键词 | keyword | 字段 | -| 分类 | category | 字段 | -| 擅长标签 | expertise tags | 字段 | -| 价格区间 | price range | 字段 | -| 最低评分 | min rating | 字段 | -| 可约日期 | available date | 字段 | -| 城市 | city | 字段 | -| 排序 | sort | 字段 | -| 页码 | page | 字段 | -| 页大小 | page size | 字段 | -| 咨询师 ID | consultant ID | 字段 | -| 展示姓名 | display name | 字段 | -| 头像 | avatar | 字段 | -| 执业身份 | practice identity | 字段 | -| 个人简介 | bio | 字段 | -| 分类集合 | categories | 字段 | -| 单次价格 | session price | 字段 | -| 从业年限 | years of practice | 字段 | -| 平均评分 | average rating | 字段 | -| 评价数 | review count | 字段 | -| 已完成预约数 | completed booking count | 字段 | -| 认证标识 | verified badge | 字段 | -| 是否已收藏 | is favorited | 字段 | -| 评价 ID | review ID | 字段 | -| 总评分 | overall rating | 字段 | -| 评价内容 | review content | 字段 | -| 评价时间 | reviewed at | 字段 | -| 时段 ID | slot ID | 字段 | -| 开始时间 | start at | 字段 | -| 结束时间 | end at | 字段 | -| 剩余容量 | remaining capacity | 字段 | -| 咨询师发现 | consultant discovery | | -| 检索 | search | | -| 公开档案 | public profile | | -| 备注 | remark | 通用 | diff --git a/example-project/docs/features/iteration1/CDC-consultant-discovery/spec.md b/example-project/docs/features/iteration1/CDC-consultant-discovery/spec.md index 585f49c..e22b77f 100644 --- a/example-project/docs/features/iteration1/CDC-consultant-discovery/spec.md +++ b/example-project/docs/features/iteration1/CDC-consultant-discovery/spec.md @@ -54,7 +54,7 @@ NEW ## 2. 功能说明 -术语表见 [glossary.md](./glossary.md)。 +术语表见 [项目术语表](../../glossary.md)。 ### 2.1 功能概述 diff --git a/example-project/docs/features/iteration1/CFL-consultant-fulfillment/glossary.md b/example-project/docs/features/iteration1/CFL-consultant-fulfillment/glossary.md deleted file mode 100644 index 57ddf3c..0000000 --- a/example-project/docs/features/iteration1/CFL-consultant-fulfillment/glossary.md +++ /dev/null @@ -1,44 +0,0 @@ -# 术语表 - -> 本 feature 统一语言(Ubiquitous Language)。规格、Plan、代码命名应对齐本表。 - -| 中文 | 英文 | 说明(可选) | -|---|---|---| -| 预约订单 | BookingOrder | 与用户侧同一订单 | -| 咨询小结 | ConsultSummary | 咨询小结 | -| 改期申请 | RescheduleRequest | 改期申请 | -| 咨询师工作台 | ConsultantDashboard | 工作台指标快照 | -| 订单 ID | order ID | 字段 | -| 咨询师 ID | consultant ID | 字段 | -| 用户展示名 | user display name | 字段 | -| 咨询主题 | topic | 字段 | -| 预约开始时间 | slot start at | 字段 | -| 订单状态 | order status | 字段 | -| 拒绝原因 | reject reason | 字段 | -| 拒绝说明 | reject note | 字段 | -| 确认时间 | confirmed at | 字段 | -| 开始时间 | start at | 字段 | -| 完成时间 | completed at | 字段 | -| 小结 ID | summary ID | 字段 | -| 小结.订单 ID | order ID | 字段 | -| 后续建议 | recommendations | 字段 | -| 提交时间 | submitted at | 字段 | -| 改期申请 ID | reschedule request ID | 字段 | -| 改期.订单 ID | order ID | 字段 | -| 原时段 ID | original slot ID | 字段 | -| 新时段 ID | proposed slot ID | 字段 | -| 改期原因 | reschedule reason | 字段 | -| 申请状态 | request status | 字段 | -| 确认截止时间 | confirm by | 字段 | -| 今日咨询数 | today consultation count | 字段 | -| 本月订单数 | month order count | 字段 | -| 平均评分 | average rating | 字段 | -| 待处理数 | pending count | 字段 | -| 今日待办 | today's todos | 字段 | -| 公告列表 | announcements | 字段 | -| 生成时间 | generated at | 字段 | -| 履约 | fulfillment | | -| 接单 | accept order | | -| 拒单 | reject order | | -| 改期 | reschedule | | -| 备注 | remark | 通用 | diff --git a/example-project/docs/features/iteration1/CFL-consultant-fulfillment/spec.md b/example-project/docs/features/iteration1/CFL-consultant-fulfillment/spec.md index 44f329a..4202f86 100644 --- a/example-project/docs/features/iteration1/CFL-consultant-fulfillment/spec.md +++ b/example-project/docs/features/iteration1/CFL-consultant-fulfillment/spec.md @@ -57,7 +57,7 @@ NEW ## 2. 功能说明 -术语表见 [glossary.md](./glossary.md)。 +术语表见 [项目术语表](../../glossary.md)。 ### 2.1 功能概述 diff --git a/example-project/docs/features/iteration1/COB-consultant-onboarding/glossary.md b/example-project/docs/features/iteration1/COB-consultant-onboarding/glossary.md deleted file mode 100644 index f318e25..0000000 --- a/example-project/docs/features/iteration1/COB-consultant-onboarding/glossary.md +++ /dev/null @@ -1,50 +0,0 @@ -# 术语表 - -> 本 feature 统一语言(Ubiquitous Language)。规格、Plan、代码命名应对齐本表。 - -| 中文 | 英文 | 说明(可选) | -|---|---|---| -| 入驻申请 | OnboardingApplication | 入驻申请 | -| 咨询师档案 | ConsultantProfile | 对外档案(含草稿/线上版) | -| 资质文件 | CredentialFile | 资质文件 | -| 周固定可约模板 | WeeklySlotTemplate | 周固定可约模板 | -| 申请 ID | application ID | 字段 | -| 账号 ID | account ID | 字段 | -| 姓名 | full name | 字段 | -| 证件号码 | ID number | 字段 | -| 执业身份 | practice identity | 字段 | -| 擅长领域 | expertise area | 字段 | -| 服务分类 | service category | 字段 | -| 从业年限 | years of practice | 字段 | -| 期望定价 | expected price | 字段 | -| 申请状态 | request status | 字段 | -| 驳回原因码 | reject reason code | 字段 | -| 驳回说明 | reject note | 字段 | -| 提交时间 | submitted at | 字段 | -| 审核时间 | reviewed at | 字段 | -| 咨询师 ID | consultant ID | 字段 | -| 档案版本 | profile version | 字段 | -| 展示姓名 | display name | 字段 | -| 头像文件 ID | avatar file ID | 字段 | -| 个人简介 | bio | 字段 | -| 服务说明 | service description | 字段 | -| 分类集合 | categories | 字段 | -| 擅长标签 | expertise tags | 字段 | -| 服务价格 | service price | 字段 | -| 审核状态 | review status | 字段 | -| 线上版本号 | published version | 字段 | -| 文件 ID | file ID | 字段 | -| 文件用途 | file purpose | 字段 | -| 存储地址 | storage URL | 字段 | -| MIME 类型 | MIME type | 字段 | -| 文件大小 | file size | 字段 | -| 安全状态 | security status | 字段 | -| 星期 | weekday | 字段 | -| 开始时间 | start at | 字段 | -| 结束时间 | end at | 字段 | -| 默认容量 | default capacity | 字段 | -| 入驻 | onboarding | | -| 审核 | review / approval | | -| 资质 | credential | | -| 档案草稿 | profile draft | | -| 备注 | remark | 通用 | diff --git a/example-project/docs/features/iteration1/COB-consultant-onboarding/spec.md b/example-project/docs/features/iteration1/COB-consultant-onboarding/spec.md index 33d10ec..abfe7d9 100644 --- a/example-project/docs/features/iteration1/COB-consultant-onboarding/spec.md +++ b/example-project/docs/features/iteration1/COB-consultant-onboarding/spec.md @@ -55,7 +55,7 @@ NEW ## 2. 功能说明 -术语表见 [glossary.md](./glossary.md)。 +术语表见 [项目术语表](../../glossary.md)。 ### 2.1 功能概述 diff --git a/example-project/docs/features/iteration1/CSC-consultant-schedule/glossary.md b/example-project/docs/features/iteration1/CSC-consultant-schedule/glossary.md deleted file mode 100644 index 5bfb294..0000000 --- a/example-project/docs/features/iteration1/CSC-consultant-schedule/glossary.md +++ /dev/null @@ -1,34 +0,0 @@ -# 术语表 - -> 本 feature 统一语言(Ubiquitous Language)。规格、Plan、代码命名应对齐本表。 - -| 中文 | 英文 | 说明(可选) | -|---|---|---| -| 时段 | TimeSlot | 30 分钟粒度时段 | -| 例外不可约 | SlotException | 例外不可约 | -| 周固定可约模板 | WeeklySlotTemplate | 周模板(来源 onboarding) | -| 时段 ID | slot ID | 字段 | -| 咨询师 ID | consultant ID | 字段 | -| 开始时间 | start at | 字段 | -| 结束时间 | end at | 字段 | -| 时长 | duration | 字段 | -| 容量 | capacity | 字段 | -| 已占数量 | occupied count | 字段 | -| 状态 | status | 字段 | -| 来源 | source | 字段 | -| 停用原因 | disabled reason | 字段 | -| 乐观锁版本 | optimistic lock version | 字段 | -| 创建时间 | created at | 字段 | -| 例外 ID | exception ID | 字段 | -| 例外日期 | exception date | 字段 | -| 例外类型 | exception type | 字段 | -| 原因说明 | reason note | 字段 | -| 起始日期 | start date | 字段 | -| 截止日期 | end date | 字段 | -| 星期集合 | weekdays | 字段 | -| 批量模式 | batch mode | 字段 | -| 档期 | schedule | | -| 不可约 | unavailable | | -| 占用 | occupy / lock | | -| 释放 | release | | -| 备注 | remark | 通用 | diff --git a/example-project/docs/features/iteration1/CSC-consultant-schedule/spec.md b/example-project/docs/features/iteration1/CSC-consultant-schedule/spec.md index c5601d8..150b21c 100644 --- a/example-project/docs/features/iteration1/CSC-consultant-schedule/spec.md +++ b/example-project/docs/features/iteration1/CSC-consultant-schedule/spec.md @@ -55,7 +55,7 @@ NEW ## 2. 功能说明 -术语表见 [glossary.md](./glossary.md)。 +术语表见 [项目术语表](../../glossary.md)。 ### 2.1 功能概述 diff --git a/example-project/docs/features/iteration1/PLT-platform-capability/glossary.md b/example-project/docs/features/iteration1/PLT-platform-capability/glossary.md deleted file mode 100644 index f6fc28b..0000000 --- a/example-project/docs/features/iteration1/PLT-platform-capability/glossary.md +++ /dev/null @@ -1,58 +0,0 @@ -# 术语表 - -> 本 feature 统一语言(Ubiquitous Language)。规格、Plan、代码命名应对齐本表。 - -| 中文 | 英文 | 说明(可选) | -|---|---|---| -| 通知 | Notification | 通知消息 | -| 支付回调 | PaymentCallback | 支付/退款回调记录 | -| 服务费率版本 | FeeRateVersion | 服务费率版本 | -| 审计日志 | AuditLog | 审计日志 | -| 限流策略 | RateLimitPolicy | 限流策略 | -| 通知 ID | notification ID | 字段 | -| 接收人 ID | recipient ID | 字段 | -| 事件类型 | event type | 字段 | -| 标题 | title | 字段 | -| 内容 | content | 字段 | -| 业务类型 | business type | 字段 | -| 业务 ID | business ID | 字段 | -| 已读时间 | read at | 字段 | -| 创建时间 | created at | 字段 | -| 渠道 | channel | 字段 | -| 投递状态 | delivery status | 字段 | -| 尝试次数 | attempt count | 字段 | -| 下次重试时间 | next retry at | 字段 | -| 失败码 | failure code | 字段 | -| 记录 ID | record ID | 字段 | -| 回调单号 | callback ID | 字段 | -| 回调类型 | callback type | 字段 | -| 网关 | gateway | 字段 | -| 业务单 ID | business order ID | 字段 | -| 金额 | amount | 字段 | -| 验签结果 | signature valid | 字段 | -| 处理状态 | process status | 字段 | -| 接收时间 | received at | 字段 | -| 费率版本 | fee rate version | 字段 | -| 服务费率 | service fee rate | 字段 | -| 生效时间 | effective at | 字段 | -| 失效时间 | expire at | 字段 | -| 创建人 | created by | 字段 | -| 日志 ID | log ID | 字段 | -| 操作人 | operator | 字段 | -| 动作编码 | action code | 字段 | -| 对象类型/ID | target type/ID | 字段 | -| 结果 | result | 字段 | -| 来源 IP | source IP | 字段 | -| 链路追踪 ID | trace ID | 字段 | -| 操作时间 | operated at | 字段 | -| 策略键 | policy key | 字段 | -| 限额 | limit | 字段 | -| 窗口秒数 | window seconds | 字段 | -| 数据请求类型 | data request type | 字段 | -| 完成时间 | completed at | 字段 | -| 站内信 | inbox message | | -| 回调 | callback | | -| 幂等 | idempotency | | -| 限流 | rate limit | | -| 审计 | audit | | -| 备注 | remark | 通用 | diff --git a/example-project/docs/features/iteration1/PLT-platform-capability/spec.md b/example-project/docs/features/iteration1/PLT-platform-capability/spec.md index 71b29a5..6604304 100644 --- a/example-project/docs/features/iteration1/PLT-platform-capability/spec.md +++ b/example-project/docs/features/iteration1/PLT-platform-capability/spec.md @@ -55,7 +55,7 @@ NEW ## 2. 功能说明 -术语表见 [glossary.md](./glossary.md)。 +术语表见 [项目术语表](../../glossary.md)。 ### 2.1 功能概述 diff --git a/example-project/docs/features/iteration1/SET-settlement/glossary.md b/example-project/docs/features/iteration1/SET-settlement/glossary.md deleted file mode 100644 index 9f19afa..0000000 --- a/example-project/docs/features/iteration1/SET-settlement/glossary.md +++ /dev/null @@ -1,42 +0,0 @@ -# 术语表 - -> 本 feature 统一语言(Ubiquitous Language)。规格、Plan、代码命名应对齐本表。 - -| 中文 | 英文 | 说明(可选) | -|---|---|---| -| 收入概览 | IncomeOverview | 收入概览 | -| 结算单 | SettlementBill | 月度结算单 | -| 提现申请 | WithdrawalRequest | 提现申请 | -| 今日收入 | today's income | 字段 | -| 本月收入 | month income | 字段 | -| 待结算金额 | pending settlement amount | 字段 | -| 可提现余额 | withdrawable balance | 字段 | -| 冻结金额 | frozen amount | 字段 | -| 结算单 ID | settlement bill ID | 字段 | -| 咨询师 ID | consultant ID | 字段 | -| 账期 | billing period | 字段 | -| 账单状态 | bill status | 字段 | -| 订单总额 | order total | 字段 | -| 服务费 | platform fee | 字段 | -| 退款金额 | refund amount | 字段 | -| 应结金额 | net payable | 字段 | -| 出账时间 | issued at | 字段 | -| 明细 ID | line ID | 字段 | -| 订单 ID | order ID | 字段 | -| 明细.完成时间 | line completed at | 字段 | -| 订单金额 | order amount | 字段 | -| 费率版本 | fee rate version | 字段 | -| 净收入 | net income | 字段 | -| 提现单 ID | withdrawal ID | 字段 | -| 提现金额 | withdrawal amount | 字段 | -| 收款账户快照 | payout account snapshot | 字段 | -| 提现状态 | withdrawal status | 字段 | -| 渠道流水号 | gateway trade no | 字段 | -| 失败码 | failure code | 字段 | -| 失败原因 | failure reason | 字段 | -| 申请时间 | applied at | 字段 | -| 提现.完成时间 | withdrawal completed at | 字段 | -| 结算 | settlement | | -| 出账 | billing / issue bill | | -| 提现 | withdrawal | | -| 备注 | remark | 通用 | diff --git a/example-project/docs/features/iteration1/SET-settlement/spec.md b/example-project/docs/features/iteration1/SET-settlement/spec.md index 708bbdf..de27494 100644 --- a/example-project/docs/features/iteration1/SET-settlement/spec.md +++ b/example-project/docs/features/iteration1/SET-settlement/spec.md @@ -55,7 +55,7 @@ NEW ## 2. 功能说明 -术语表见 [glossary.md](./glossary.md)。 +术语表见 [项目术语表](../../glossary.md)。 ### 2.1 功能概述 diff --git a/harness-installer/scripts/init-harness.sh b/harness-installer/scripts/init-harness.sh index de53d83..2b3b2d9 100755 --- a/harness-installer/scripts/init-harness.sh +++ b/harness-installer/scripts/init-harness.sh @@ -111,6 +111,7 @@ PAIRS=( "FEATURES_DIR=$PROJECT_ROOT/$FEATURES_DIR" "PLAN_TEMPLATE=$PROJECT_ROOT/$FEATURES_DIR/_template/plan.md" "SPEC_TEMPLATE=$PROJECT_ROOT/$FEATURES_DIR/_template/spec.md" + "GLOSSARY_FILE=$PROJECT_ROOT/$FEATURES_DIR/glossary.md" "DOCS_DIR=$PROJECT_ROOT/$DOCS_DIR" "FRONTEND_DIR=$PROJECT_ROOT/$FRONTEND_DIR" "BACKEND_DIR=$PROJECT_ROOT/$BACKEND_DIR" diff --git a/harness-installer/templates/AGENTS.md.template b/harness-installer/templates/AGENTS.md.template index 43b0217..b7fd19a 100644 --- a/harness-installer/templates/AGENTS.md.template +++ b/harness-installer/templates/AGENTS.md.template @@ -172,11 +172,11 @@ TODO:贴出核心状态机图,并写明状态流转由哪个 domain 守卫 ``` {{DOCS_DIR}}/ ├── features/ # 需求规格 + 技术方案(过程文档) -│ ├── _template/ # spec.md + plan.md + glossary.md +│ ├── glossary.md # 项目级双语术语表 +│ ├── _template/ # spec.md + plan.md │ ├── _chores/ # 无关联 feature 的 plan │ └── <迭代>/-/ -│ ├── spec.md -│ ├── glossary.md # 本 feature 双语术语表 +│ ├── spec.md # 引用 ../../glossary.md │ ├── plan.md # 含粗实施步骤 │ └── plan-progress.md # dev-build 细化进度 ├── facts/ # 事实文档 diff --git a/harness-installer/templates/docs/README.md b/harness-installer/templates/docs/README.md index 468e1a7..584544c 100644 --- a/harness-installer/templates/docs/README.md +++ b/harness-installer/templates/docs/README.md @@ -36,7 +36,7 @@ - 需求规格与 Plan **定稿后不改**;同一 feature 的二次改造新建 `plan-{slug}.md`。 - 事实文档必须与代码一致;改了代码就要改文档。 -- 新建需求:复制 `features/_template/` 为 `features/<迭代>/-/`,再改 `spec.md` / `glossary.md` / `plan.md`。 +- 新建需求:复制 `features/_template/` 为 `features/<迭代>/-/`,再改 `spec.md` / `plan.md`;新术语写入 `features/glossary.md`。 - 每个迭代应有 `features/<迭代>/high-level-design.md`;**确认前不得写 feature Plan**。 ## 同步检查点 diff --git a/harness-installer/templates/docs/features/README.md b/harness-installer/templates/docs/features/README.md index ba31249..0ad3e56 100644 --- a/harness-installer/templates/docs/features/README.md +++ b/harness-installer/templates/docs/features/README.md @@ -4,18 +4,18 @@ ``` docs/features/ -├── _template/ # spec.md + plan.md + glossary.md +├── glossary.md # 项目级双语术语表(统一语言) +├── _template/ # spec.md + plan.md ├── _chores/ # 无关联 feature 的 plan-{slug}.md └── <迭代>/ ├── high-level-design.md # 迭代高阶技术设计(HLD / TRD,人工确认) └── -/ - ├── spec.md - ├── glossary.md # 本 feature 双语术语表(统一语言) + ├── spec.md # 引用 ../../glossary.md ├── plan.md # 粗实施步骤;HLD 确认后再写 ├── plan-progress.md # dev-build 细化进度(随实现更新) └── plan-{slug}.md # 对应 plan-{slug}-progress.md ``` 约定:每个迭代目录应有 `high-level-design.md`;**确认前不得写 feature Plan**。 -每个 feature 目录应有 `glossary.md`(中文 | 英文 | 说明);`spec.md` 在 §2 附近引用之。 +项目级 `glossary.md`(中文 | 英文 | 说明)一份;`spec.md` 在 §2 附近引用之。 Plan 只写粗「实施步骤」;`dev-build` 写同目录 `{planStem}-progress.md` 细 checklist 并勾选。 diff --git a/harness-installer/templates/docs/features/_template/glossary.md b/harness-installer/templates/docs/features/_template/glossary.md deleted file mode 100644 index 17f2038..0000000 --- a/harness-installer/templates/docs/features/_template/glossary.md +++ /dev/null @@ -1,7 +0,0 @@ -# 术语表 - -> 本 feature 统一语言(Ubiquitous Language)。规格、Plan、代码命名应对齐本表。 - -| 中文 | 英文 | 说明(可选) | -|---|---|---| -| 备注 | remark | 示例行;无新增术语时可改为一行「无」 | diff --git a/harness-installer/templates/docs/features/_template/spec.md b/harness-installer/templates/docs/features/_template/spec.md index d93413d..51f2904 100644 --- a/harness-installer/templates/docs/features/_template/spec.md +++ b/harness-installer/templates/docs/features/_template/spec.md @@ -49,7 +49,7 @@ NEW / UPDATE ## 2. 功能说明 -术语表见 [glossary.md](./glossary.md)。 +术语表见 [项目术语表](../glossary.md)。 ### 2.1 功能概述 diff --git a/harness-installer/templates/docs/features/glossary.md b/harness-installer/templates/docs/features/glossary.md new file mode 100644 index 0000000..4af771a --- /dev/null +++ b/harness-installer/templates/docs/features/glossary.md @@ -0,0 +1,8 @@ +# 术语表 + +> 项目级统一语言(Ubiquitous Language)。各 feature 的规格、Plan、代码命名应对齐本表。 +> 由 `ba-write-spec` 在写/改规格时维护;新增术语追加到本文件,不按 feature 拆分。 + +| 中文 | 英文 | 说明(可选) | +|---|---|---| +| 备注 | remark | 示例行;无术语时可改为一行「无」 |