refactor: 将设计文档中的Mermaid图表转换为ASCII格式

为提高兼容性,避免Mermaid版本兼容问题,将所有设计文档中的
Mermaid图表转换为ASCII格式。

修改文件:
- HLD-系统概要设计.md
  • 业务范围图 (mindmap → ASCII)
  • 总体架构图 (graph → ASCII)
  • 技术架构图 (graph → ASCII)
  • 部署架构图 (graph → ASCII)
  • 模块划分图 (graph → ASCII)
  • 模块交互图 (sequenceDiagram → ASCII)
  • 接口分组图 (graph → ASCII)

- LLD-会员模块详细设计.md
  • 模块边界图 (graph → ASCII)
  • 实体关系图 (erDiagram → ASCII)

- LLD-预约模块详细设计.md
  • 模块边界图 (graph → ASCII)
  • 实体关系图 (erDiagram → ASCII)

- LLD-签到模块详细设计.md
  • 模块边界图 (graph → ASCII)
  • 实体关系图 (erDiagram → ASCII)

所有ASCII图表采用统一的边框样式,左右两侧对齐,提高可读性。~
This commit is contained in:
张翔
2026-03-04 10:20:11 +08:00
parent 9f8fdd9368
commit 97c5c08513
4 changed files with 556 additions and 606 deletions
+61 -82
View File
@@ -39,27 +39,35 @@
### 1.2 模块边界
```mermaid
graph TB
subgraph Internal[预约模块内部]
B1[课程管理]
B2[时段管理]
B3[预约管理]
B4[库存管理]
end
subgraph ExternalDeps[外部依赖]
D1[会员模块<br/>查询会员权益、扣减权益]
D2[教练模块<br/>查询教练信息、排班]
D3[场地模块<br/>查询场地信息、可用性]
D4[消息模块<br/>发送预约通知]
end
subgraph Deps[被依赖]
U1[签到模块<br/>查询预约信息、验证签到资格]
U2[财务模块<br/>查询预约消费记录]
U3[数据模块<br/>预约数据分析]
end
```
┌─────────────────────────────────────────────────────────────────────────┐
│ 预约模块边界 │
├─────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ 预约模块内部 │ │
│ ├─────────────────────────────────────────────────────────────────┤ │
│ │ • 课程管理 • 时段管理 • 预约管理 • 库存管理 │ │
│ └─────────────────────────────────────────────────────────────────┘ │
│ │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ 外部依赖 │ │
│ ├─────────────────────────────────────────────────────────────────┤ │
│ │ • 会员模块 (查询会员权益、扣减权益) │ │
│ │ • 教练模块 (查询教练信息、排班) │ │
│ │ • 场地模块 (查询场地信息、可用性) │ │
│ │ • 消息模块 (发送预约通知) │ │
│ └─────────────────────────────────────────────────────────────────┘ │
│ │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ 被依赖 │ │
│ ├─────────────────────────────────────────────────────────────────┤ │
│ │ • 签到模块 (查询预约信息、验证签到资格) │ │
│ │ • 财务模块 (查询预约消费记录) │ │
│ │ • 数据模块 (预约数据分析) │ │
│ └─────────────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────┘
```
---
@@ -68,67 +76,38 @@ graph TB
### 2.1 实体关系图
```mermaid
erDiagram
coach ||--o{ booking_slot : coaches
course ||--o{ booking_slot : courses
venue ||--o{ booking_slot : venues
booking_slot ||--o{ booking_record : slots
coach {
bigint id PK
varchar name
varchar specialty
smallint status
}
course {
bigint id PK
bigint tenant_id FK
varchar name
smallint type
varchar category
int duration
int capacity
smallint status
}
venue {
bigint id PK
bigint tenant_id FK
varchar name
smallint type
int capacity
smallint status
}
booking_slot {
bigint id PK
bigint tenant_id FK
smallint resource_type
bigint resource_id FK
bigint coach_id FK
bigint venue_id FK
timestamp start_time
timestamp end_time
int capacity
int booked_count
smallint status
}
booking_record {
bigint id PK
bigint tenant_id FK
bigint member_id FK
bigint slot_id FK
bigint coach_id FK
smallint status
decimal price
smallint price_type
decimal price_value
smallint checkin_status
}
```
┌─────────────────────────────────────────────────────────────────────────┐
│ 实体关系图 │
├─────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ coach │ │ course │ │ venue │ │
│ │ (教练) │ │ (课程) │ │ (场地) │ │
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ │
│ │ 1:N │ 1:N │ 1:N │
│ │ │ │ │
│ └──────────────┴──────────────┘ │
│ │ 1:N │
│ ▼ │
│ ┌──────────────────┐ │
│ │ booking_slot │ │
│ │ (预约时段) │ │
│ └────────┬─────────┘ │
│ │ 1:N │
│ ▼ │
│ ┌──────────────────┐ │
│ │ booking_record │ │
│ │ (预约记录) │ │
│ └──────────────────┘ │
│ │
│ 关系说明: │
│ • coach (1) ─── (N) booking_slot : 一个教练有多个时段 │
│ • course (1) ─── (N) booking_slot : 一个课程有多个时段 │
│ • venue (1) ─── (N) booking_slot : 一个场地有多个时段 │
│ • booking_slot (1) ─── (N) booking_record : 一个时段有多个预约记录 │
│ │
└─────────────────────────────────────────────────────────────────────────┘
```
### 2.2 数据表设计