Commit Graph

3 Commits

Author SHA1 Message Date
zwt13703 c11ea22e88 fix: 占位符替换 - 新增 selected_text 字段彻底解决位置偏移问题
- 新增 generation_points.selected_text 字段存储用户实际选中的文本
- 生成任务优先使用 selected_text 直改 docx,不再依赖脆弱的位置偏移
- 前端创建生成点时同时传递选中文本内容
- 原始 docx 直改方案完美保留所有样式(加粗/标题/表格)
- 端到端验证: {{ placeholder }} → AI 内容替换成功,样式不变
2026-07-06 18:20:00 +08:00
zwt13703 0b23858159 chore: 修复 docker-compose 镜像版本 + 添加 Alembic 初始迁移
- postgres:18.3 -> postgres:16-alpine (18.3 尚未发布)
- 移除废弃的 version 字段
- 添加初始数据库迁移脚本
2026-07-06 16:43:05 +08:00
zwt13703 b5fa343bf8 feat: 阶段一 - 项目基础设施搭建
- 创建前后端项目目录结构
- docker-compose.yml (Postgres 18.3 + Redis 7)
- 后端:FastAPI + SQLAlchemy 异步引擎 + Alembic 迁移
- 5个ORM模型:AIModel, Template, GenerationPoint, GenerationTask, SystemConfig
- 核心模块:config, database, security(Fernet加密), file_storage
- 前端:Vite + React 18 + TS + Ant Design + React Router
- 侧边栏布局 + 5个占位页面
2026-07-06 16:16:23 +08:00