iconsulting/packages/services/knowledge-service/src
hailin 93ed3343de refactor(knowledge): separate file upload into independent entry point
将知识库的"新建文章"和"上传文件"拆分为两个独立入口:

UI 改动:
- 移除 Segmented 切换器,"新建文章"弹窗恢复为纯手动输入
- 新增独立的"上传文件"按钮 + 上传弹窗(Upload.Dragger)
- 上传提取完成后自动打开"确认提取内容"弹窗,预填标题+内容
- 管理员编辑确认后保存,文章来源标记为 EXTRACT

后端改动:
- CreateArticleDto 新增可选 source 字段
- Controller 使用 dto.source || MANUAL(不再硬编码 MANUAL)

流程:
- 新建文章 → 手动输入 → source = MANUAL
- 上传文件 → 提取文本 → 编辑确认 → source = EXTRACT

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 23:29:37 -08:00
..
adapters refactor(knowledge): separate file upload into independent entry point 2026-02-06 23:29:37 -08:00
application refactor(knowledge): separate file upload into independent entry point 2026-02-06 23:29:37 -08:00
domain Initial commit: iConsulting 香港移民咨询智能客服系统 2026-01-09 00:01:12 -08:00
health fix(docker): add health check endpoints and fix IPv6 issue 2026-01-10 02:13:42 -08:00
infrastructure feat: add enterprise multi-tenancy infrastructure 2026-01-25 18:11:12 -08:00
knowledge feat(knowledge): add file upload with text extraction for knowledge base 2026-02-06 22:58:19 -08:00
memory refactor(services): implement 4-layer Clean Architecture for all backend services 2026-01-24 22:18:22 -08:00
migrations fix(db): add multi-tenancy migration for knowledge-service tables 2026-02-06 09:23:13 -08:00
app.module.ts fix(tenant): use TenantContextModule.forRoot() for global tenant context 2026-01-26 04:31:56 -08:00
main.ts fix(health): exclude /health endpoint from API prefix 2026-01-10 02:30:24 -08:00