You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1.1 KiB

03 · 图谱域后端实现

  • Type: task
  • Status: open
  • Blocked by: 01, 02

Question

按 spec 实现图谱域后端(crm-customer):

  1. 边表实体 + Repository(含系统边否决 tombstone 语义;孤立单大写字母 @Column 陷阱自查)。
  2. 自动生成引擎:job_title_level → 层级布局 + 系统边生成(多顶层并列/同级并列/未识别层级区/公司节点虚拟位),职务修改后按 spec 语义增量更新。
  3. 端点:图谱读(全量节点+边+布局)/ 边 add / 边 delete / 布局 save;校验自连/循环/重复(错误码按 spec);并发冲突检测;保存成功记关系变更日志(是否扩 oplog 值域 17→N 种按 spec)。
  4. 明文查看 reveal 端点 + 查看日志表(若 spec 划入图谱票则此处做,否则归票 04)。
  5. 单测:循环检测 / 层级排列 / 多父 / 否决持久化 / 冲突。
  6. ADR + crm-customer/CONTEXT.md 双文档化(图谱契约 + crm-dict 缝合点)。

验收mvn -pl crm-customer -am test 全绿;本地起服 curl 冒烟(建边→读图谱→删边→否决复验)。