draft v0.1.0 2026-07-03

EPA-002 Domain Driven Design

EAOS 采用领域驱动设计。任何新模块都必须先说明它属于哪个领域、边界是什么、核心实体是什么、与其他领域如何协作。

Core Domains

DomainResponsibilityExample 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

Ubiquitous Language

TermMeaning
Course可购买、可学习、可配置的课程产品
Lesson课程中的单个学习单元
KnowledgeNode知识图谱中的一个可复用知识点
Resource文档、视频、模板、HTML 游戏、链接等学习资源
PromptTemplate可版本管理、可评估、可复用的 AI 提示词
WorkflowRun一次可追踪的 AI 或业务流程执行