mirror of
https://github.com/documize/community.git
synced 2025-07-20 13:49:42 +02:00
saving and inserting reusable content blocks
This commit is contained in:
parent
fdbf03b25c
commit
b7fa3b9006
32 changed files with 1334 additions and 768 deletions
|
@ -186,6 +186,8 @@ type Page struct {
|
|||
UserID string `json:"userId"`
|
||||
ContentType string `json:"contentType"`
|
||||
PageType string `json:"pageType"`
|
||||
Preset bool `json:"preset"`
|
||||
PresetID string `json:"presetId"`
|
||||
Level uint64 `json:"level"`
|
||||
Sequence float64 `json:"sequence"`
|
||||
Title string `json:"title"`
|
||||
|
@ -259,6 +261,14 @@ type Revision struct {
|
|||
Revisions int `json:"revisions"`
|
||||
}
|
||||
|
||||
// PageTemplate represents a section that has been published as a template.
|
||||
// We have to create this struct to hold user name.
|
||||
type PageTemplate struct {
|
||||
Page
|
||||
Firstname string `json:"firstname"`
|
||||
Lastname string `json:"lastname"`
|
||||
}
|
||||
|
||||
// DocumentMeta details who viewed the document.
|
||||
type DocumentMeta struct {
|
||||
Viewers []DocumentMetaViewer `json:"viewers"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue