mirror of
https://github.com/2930134478/AI-CS.git
synced 2026-06-15 00:44:30 +08:00
15 lines
313 B
Go
15 lines
313 B
Go
package import_service
|
|
|
|
// ParsedDocument 解析后的文档
|
|
type ParsedDocument struct {
|
|
Title string
|
|
Content string
|
|
Metadata map[string]interface{}
|
|
}
|
|
|
|
// DocumentParser 文档解析器接口
|
|
type DocumentParser interface {
|
|
Parse(filePath string) (*ParsedDocument, error)
|
|
Supports(filePath string) bool
|
|
}
|