nex_docus/docs/sdd/specs/DV-0010-notify-log-git-export/design.md

18 lines
545 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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 清理。