Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Topic ¶
type Topic struct {
Title string `json:"title"`
ID string `json:"id"`
Href string `json:"href"`
Position struct {
X float64 `json:"x"`
Y float64 `json:"y"`
} `json:"position"`
Children struct {
Attached []Topic `json:"attached"`
} `json:"children"`
Branch string `json:"branch"`
Markers []struct {
MarkerID string `json:"markerId"`
} `json:"markers"`
Summaries []struct {
Range string `json:"range"`
TopicID string `json:"topicId"`
} `json:"summaries"`
}
type XMindContent ¶
type XMindContent []struct {
ID string `json:"id"`
Class string `json:"class"`
Title string `json:"title"`
RootTopic struct {
ID string `json:"id"`
Class string `json:"class"`
Title string `json:"title"`
Href string `json:"href"`
StructureClass string `json:"structureClass"`
Children struct {
Attached []Topic `json:"attached"`
} `json:"children"`
} `json:"rootTopic"`
}
XMindContent represents the structure of content.json
type XMindFileTask ¶
XMindFileTask XMind文件处理任务
type XMindMDConfig ¶
type XMindMDConfig struct {
InputPath string // 输入路径(文件或目录)
InputListPath string // 输入列表文件路径
OutputDir string // 输出目录路径
Threads int // 并发线程数
}
XMindMDConfig XMind转MD配置
type XMindMDProcessor ¶
type XMindMDProcessor struct {
// contains filtered or unexported fields
}
XMindMDProcessor XMind转MD处理器
func NewXMindMDProcessor ¶
func NewXMindMDProcessor(config *XMindMDConfig, appConfig *models.AppConfig) (*XMindMDProcessor, error)
NewXMindMDProcessor 创建XMind转MD处理器
func (*XMindMDProcessor) ConvertToMarkdown ¶
func (p *XMindMDProcessor) ConvertToMarkdown() (*XMindMDResult, error)
ConvertToMarkdown 转换XMind文件为Markdown
type XMindMDResult ¶
type XMindMDResult struct {
Success bool `json:"success"`
InputPath string `json:"input_path"`
OutputDir string `json:"output_dir"`
FileCount int `json:"file_count"`
TotalSheets int `json:"total_sheets"`
TotalTopics int `json:"total_topics"`
SuccessFiles int `json:"success_files"`
FailedFiles int `json:"failed_files"`
Duration float64 `json:"duration"`
ErrorMessage string `json:"error_message,omitempty"`
StartTime time.Time `json:"start_time"`
EndTime time.Time `json:"end_time"`
}
XMindMDResult XMind转MD结果
Click to show internal directories.
Click to hide internal directories.