MCPcopy Index your code
hub / github.com/TruthHun/BookStack / NewDocument

Function NewDocument

models/document.go:73–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73func NewDocument() *Document {
74 return &Document{
75 Version: time.Now().Unix(),
76 }
77}
78
79//根据文档ID查询指定文档.
80func (m *Document) Find(id int) (doc *Document, err error) {

Callers 15

ReadMethod · 0.92
ReadBookMethod · 0.92
EditMethod · 0.92
CreateMethod · 0.92
UploadMethod · 0.92
RemoveAttachmentMethod · 0.92
DeleteMethod · 0.92
ContentMethod · 0.92
HistoryMethod · 0.92
DeleteHistoryMethod · 0.92
RestoreHistoryMethod · 0.92
CompareMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected