IOS-M0-02 Document Import 文档导入 #2
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
目标
实现文档导入功能:选择文件 → 上传到 COS → 创建导入任务 → 轮询导入状态。
背景说明
当前 ImportPage 有 4 个按钮(拍照导入/文件导入/链接导入/相册导入)全是空壳 Button { } 没有任何逻辑。后端 document-import 模块已实现。
后端接口
模块职责
禁止事项
✅ IOS-M0-02 修复完成
问题
ImportPage4 个按钮(文件导入/相册导入/链接导入/拍照导入)全是空壳Button { }没有任何逻辑。用户无法导入文档到知识库。修改
Core/Models/APIModels.swiftCreateImportRequest、ImportStatusResponse模型Core/Services/APIService.swiftDocumentImportService:create()、getStatus()2 个方法Features/Library/LibrarySubpages.swiftImportPage重写:3 个导入入口全部接入后端行为变化
Button { }空壳POST /importsButton { }空壳POST /importsButton { }空壳POST /imports(sourceType: link)Button { }空壳接入的后端接口
/imports导入流程
后续
IOS-M0-03 Import Candidate将处理解析后的候选审批。