18 lines
545 B
Markdown
18 lines
545 B
Markdown
# DV-0010:通知 / 日志 / Git / 导出 – 设计(Design)
|
||
|
||
## 上下文
|
||
`notifications.py`、`logs.py`、`git_repos.py`、`project_export_service.py`。
|
||
|
||
## 数据模型
|
||
- `notifications`、`operation_logs`、`project_git_repos`。
|
||
|
||
## 接口设计
|
||
- /api/v1/notifications/*(unread-count/read/mark-all/system)
|
||
- /api/v1/logs/*(列表/stats)
|
||
- /api/v1/projects/{id}/git-repos + /git/{pull,push}
|
||
- /api/v1/files/{id}/export-*(ZIP/PDF)
|
||
|
||
## 导出
|
||
- `ProjectExportService` 后台线程打包 ZIP,任务带进度/TTL 清理。
|
||
|