1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

saving and inserting reusable content blocks

This commit is contained in:
Harvey Kandola 2017-01-20 14:24:38 -08:00
parent fdbf03b25c
commit b7fa3b9006
32 changed files with 1334 additions and 768 deletions

View file

@ -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"`