44e77dcb0e
**重构前**(旧编号 02-11): - docs/02-产品需求/ → 00 产品规划/PRD - docs/03-技术架构/ → 01-05 子目录散落 - docs/04-原型设计/ → 01-02 产品设计(HTML 原型) - docs/05-原型设计/ → screens/ - docs/06-测试素材/ → 02-E2E / 03-功能 / 04-版本测试 - docs/07-项目管理/ → 任务说明书/日报/计划 - docs/08-安全审计/ → 审计报告 - docs/09-堡垒运维/ → toolbox / deploy - docs/10-项目管理/ → 任务说明书(重复) - docs/11-历史归档/ → deploy-nas-archived **重构后**(新编号 00-07,语义化): - docs/00-产品开发流程与文档管理规范.md - docs/00-版本迭代总览.md - docs/01-产品文档/ (PRD/原型/认证/会话/AI 服务/坐席/集成) - docs/02-技术文档/ (技术方案/架构图/重构记录/前端改造/实现配置) - docs/03-测试文档/ (E2E/功能用例/版本报告/缺陷单) - docs/04-运维文档/ (部署运维/运维指南) - docs/05-运营文档/ (品牌推广/用户手册) - docs/06-安全审计/ (审计报告) - docs/07-项目管理/ (任务说明书/日报/计划/看板) **净收益**: - 目录编号与产品文档管理规范对齐(按文档阶段 01-07 编号) - 消除 02-产品需求 与 10-项目管理 的编号重叠 - 子目录按文档类型分组(如 01-产品文档/00-产品规划、01-产品文档/01-认证与登录) - 把运维/安全/项目管理从 0X 散落改为 04/06/07 合计 494 文件 + 78495 行 / - 14076 行
94 lines
2.6 KiB
Plaintext
94 lines
2.6 KiB
Plaintext
%% IT 智能服务台 — 架构组件图(卷挂载重构前后对比)
|
|
%% 文件: class-diagram.mermaid
|
|
|
|
classDiagram
|
|
class HostServer {
|
|
+String path: /opt/wecom-it-desk/
|
|
+String ip: 10.90.5.110
|
|
+String domain: itsupport.servyou.com.cn
|
|
}
|
|
|
|
class AppDirectory {
|
|
+String path: /opt/wecom-it-desk/app/
|
|
+String role: 唯一代码源
|
|
+List~File~ pythonFiles
|
|
+Boolean hasAuthPy
|
|
}
|
|
|
|
class BackendDirectory {
|
|
+String path: /opt/wecom-it-desk/backend/
|
|
+File dockerfile
|
|
+File requirementsTxt
|
|
+String note: 不再包含 app/ 子目录
|
|
}
|
|
|
|
class DockerImage {
|
|
+String name: wecom-it-desk-backend:latest
|
|
+String base: python:3.12-slim
|
|
+String pythonVersion: 3.12
|
|
+Boolean containsCode: false
|
|
+Boolean containsDeps: true
|
|
+String envPythondontWriteBytecode: "1"
|
|
}
|
|
|
|
class DockerContainer {
|
|
+String name: wecom_it_backend
|
|
+String workdir: /app
|
|
+String command: uvicorn app.main:app
|
|
+Integer port: 8000
|
|
+Boolean healthy
|
|
}
|
|
|
|
class VolumeMount {
|
|
+String hostPath: /opt/wecom-it-desk/app/
|
|
+String containerPath: /app/app/
|
|
+String type: bind
|
|
+String mode: rw
|
|
}
|
|
|
|
class UploadVolume {
|
|
+String name: backend-uploads
|
|
+String containerPath: /app/uploads/
|
|
+String type: named_volume
|
|
}
|
|
|
|
class LogMount {
|
|
+String hostPath: /var/log/wecom-it-desk/
|
|
+String containerPath: /app/logs/
|
|
+String type: bind
|
|
}
|
|
|
|
class DockerCompose {
|
|
+String file: docker-compose.yml
|
|
+String buildContext: ./backend
|
|
+List~Service~ services
|
|
}
|
|
|
|
class HealthCheck {
|
|
+String endpoint: /health
|
|
+Integer interval: 30
|
|
+Integer timeout: 10
|
|
+Integer retries: 3
|
|
+Integer startPeriod: 40
|
|
}
|
|
|
|
HostServer --> AppDirectory : contains
|
|
HostServer --> BackendDirectory : contains
|
|
HostServer --> DockerCompose : contains
|
|
|
|
DockerCompose --> DockerImage : builds
|
|
DockerCompose --> DockerContainer : runs
|
|
DockerCompose --> VolumeMount : configures
|
|
DockerCompose --> UploadVolume : configures
|
|
DockerCompose --> LogMount : configures
|
|
|
|
DockerImage --> DockerContainer : basis for
|
|
VolumeMount --> DockerContainer : mounts code to /app/app/
|
|
UploadVolume --> DockerContainer : mounts uploads to /app/uploads/
|
|
LogMount --> DockerContainer : mounts logs to /app/logs/
|
|
|
|
AppDirectory --> VolumeMount : source of
|
|
DockerContainer --> HealthCheck : monitored by
|
|
|
|
BackendDirectory --> DockerImage : provides Dockerfile + requirements.txt
|