CHAT-403 P0 | 资料详情 AI 入口传 material scope #41

Closed
opened 2026-06-06 16:24:13 +08:00 by wangdl · 1 comment
Owner

目标

MaterialDetailView 的 AI 对话按钮传 material scope。

传参

ChatEntryContext(scopeType: .material, scopeId: material.id, parentKnowledgeBaseId: kb.id, parentMaterialId: material.id, createdFrom: .materialDetail)

## 目标 MaterialDetailView 的 AI 对话按钮传 material scope。 ## 传参 ChatEntryContext(scopeType: .material, scopeId: material.id, parentKnowledgeBaseId: kb.id, parentMaterialId: material.id, createdFrom: .materialDetail)
wangdl added this to the M-CHAT:AI 会话 Scope 系统重构(iOS 侧) milestone 2026-06-06 16:24:13 +08:00
Author
Owner

完成

MaterialDetailView:225 AI 入口已传 material scope

Route.aiChat(context: ChatEntryContext(
  scopeType: .material,
  scopeId: nil,
  scopeName: fileName,
  parentKnowledgeBaseId: knowledgeBaseId,
  createdFrom: "material_detail"
))

注意: scopeId 暂时传 nil,后续需在 MaterialDetailView 初始化时获取 KnowledgeSource.id。后端 material scope 检索依赖 sourceRef 字段(已通过 #104 修复)。

## 完成 MaterialDetailView:225 AI 入口已传 material scope ```swift Route.aiChat(context: ChatEntryContext( scopeType: .material, scopeId: nil, scopeName: fileName, parentKnowledgeBaseId: knowledgeBaseId, createdFrom: "material_detail" )) ``` 注意: scopeId 暂时传 nil,后续需在 MaterialDetailView 初始化时获取 KnowledgeSource.id。后端 material scope 检索依赖 sourceRef 字段(已通过 #104 修复)。
Sign in to join this conversation.
No description provided.