Documentation
¶
Overview ¶
Package domain describes the domain model of the document management system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { // ID is the unique identifier of the document. ID string // Name is the name of the document. Name string // ParentID is the unique identifier of the parent document. ParentID string // Content is the content of the document. Content string // CreatedAt is the date when the document was created. CreatedAt time.Time }
Document represents a document to be indexed.
type DocumentTreeItem ¶
type DocumentTreeItem struct { // ID is the unique identifier of the document. ID string // Name is the name of the document. Name string // Children is the child documents of the document. Children []DocumentTreeItem }
DocumentTreeItem represents a document to be displayed in the document tree.
type History ¶
type History struct { // ID is the unique identifier of the historical record of the document. ID string // EditedAt is the date when the document was edited. EditedAt time.Time // Content is the content of the document at that specific time. Content string }
History represents a historical record of a document.
Click to show internal directories.
Click to hide internal directories.