483fdb982b
- 创建后端数据库模型:DocumentChapter 和 Document,支持按章节组织的树形文档结构 - 创建数据库迁移文件:002_add_document_management.sql - 创建 Pydantic schemas:定义文档和章节的请求/响应模型 - 创建后端服务层:document_service.py 实现 CRUD 和树形结构构建 - 创建 API 路由:/api/v1/documents 和 /api/v1/documents/chapters,支持完整的 RESTful 操作 - 创建前端类型定义:document.ts - 创建文档管理页面:/admin/documents,包含章节树形目录和文档表格,支持增删改查 - 创建文档展示页面:/admin/docs-view,左侧目录树右侧内容展示,支持 Markdown 渲染 - 安装 react-markdown 依赖用于文档内容展示 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
35 lines
927 B
Python
35 lines
927 B
Python
"""Database model package.
|
|
|
|
Import all model modules during package initialization so SQLAlchemy can
|
|
resolve string-based relationships regardless of route/service import order.
|
|
"""
|
|
|
|
from . import ai_chat, atp_asset, atp_model, audit_log, auth_session, document, elevation, file_storage, fl_analysis, lightning_event, lightning_sample, line, line_tower, menu, object_group, rbac, scheduled_task, system_message, system_param, tower_model, tower_profile, user, wine, worker_registry
|
|
|
|
__all__ = [
|
|
"ai_chat",
|
|
"atp_asset",
|
|
"atp_model",
|
|
"audit_log",
|
|
"auth_session",
|
|
"document",
|
|
"elevation",
|
|
"file_storage",
|
|
"fl_analysis",
|
|
"lightning_event",
|
|
"lightning_sample",
|
|
"line",
|
|
"line_tower",
|
|
"menu",
|
|
"object_group",
|
|
"rbac",
|
|
"scheduled_task",
|
|
"system_message",
|
|
"system_param",
|
|
"tower_model",
|
|
"tower_profile",
|
|
"user",
|
|
"wine",
|
|
"worker_registry",
|
|
]
|