draft
v0.1.0
2026-07-03
EPA-002 Domain Driven Design
EAOS 采用领域驱动设计。任何新模块都必须先说明它属于哪个领域、边界是什么、核心实体是什么、与其他领域如何协作。
Core Domains
| Domain | Responsibility | Example Entities |
|---|
| Identity & Access | 用户、角色、权限、租户、审计 | User, Role, Permission, Tenant, AuditLog |
| Education Organization | 学校、校区、部门、年级、班级 | School, Campus, Department, Grade, ClassGroup |
| Learning Content | 课程、课时、资料、知识点 | Course, Lesson, Resource, KnowledgeNode |
| Assessment | 题目、试卷、作业、考试、评价 | Question, Paper, Homework, Exam, Rubric |
| Training Delivery | 训练营、报名、学习进度、结营 | TrainingCamp, Enrollment, Progress, Certificate |
| AI Center | 模型、Prompt、Agent、工作流、评估 | ModelProvider, PromptTemplate, Agent, WorkflowRun |
| Commerce | 商品、订单、支付、发票、权益 | Product, Order, Payment, Entitlement |
| Operations | 内容发布、活动、SEO、更新日志 | Article, Campaign, ReleaseNote |
Bounded Context Rules
- Assessment 不直接修改 Payment。
- Course 不直接知道 AI Provider 的密钥。
- AI Center 不直接读取学生隐私数据,必须通过授权的数据视图。
- Operations 可以引用 Course 和 Article,但不能绕过发布审查。
- Commerce 只授予权益,不决定教学内容本身。
Ubiquitous Language
| Term | Meaning |
|---|
| Course | 可购买、可学习、可配置的课程产品 |
| Lesson | 课程中的单个学习单元 |
| KnowledgeNode | 知识图谱中的一个可复用知识点 |
| Resource | 文档、视频、模板、HTML 游戏、链接等学习资源 |
| PromptTemplate | 可版本管理、可评估、可复用的 AI 提示词 |
| WorkflowRun | 一次可追踪的 AI 或业务流程执行 |