domain

package
v0.0.0-...-f0eb034 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2023 License: MIT Imports: 1 Imported by: 0

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.

type Space

type Space struct {
	// ID is the unique identifier of the space.
	ID string
	// Name is the name of the space.
	Name string
}

Space represents a space used to group documents in the document management system.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL