feat(编辑能力): 支持文档增删改及排序
build.yaml / build (push) Successful in 43s

This commit is contained in:
xiaoqidun committed 2026-10-03 14:39:50 +08:00
1 parent d37f41cd90
commit 0385e8c5fd
7 files changed
+625 -28

No files matched your search

+3 -1
View File
@@ -102,6 +102,8 @@ type DocumentInfo struct {
type DocumentEntry struct {
Index int `json:"index"`
Title string `json:"title"`
Root string `json:"root"`
ID string `json:"id"`
}
// DocumentDetails 不含页面数组的文档补充信息
@@ -433,7 +435,7 @@ func (s *Session) Summary() DocumentInfo {
DetailsPending: true,
}
for index, body := range s.Reader.OFD.DocBody {
info.Documents = append(info.Documents, DocumentEntry{Index: index, Title: body.DocInfo.Title})
info.Documents = append(info.Documents, DocumentEntry{Index: index, Title: body.DocInfo.Title, Root: body.DocRoot, ID: body.DocInfo.DocID})
}
if docInfo, err := s.Reader.DocInfo(); err == nil && docInfo != nil {
info.Title = docInfo.Title