mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
page codebase moved to new API
This commit is contained in:
parent
f7bcf1366c
commit
d5bc9bb7cb
7 changed files with 1718 additions and 25 deletions
|
@ -95,3 +95,22 @@ type Revision struct {
|
|||
Initials string `json:"initials"`
|
||||
Revisions int `json:"revisions"`
|
||||
}
|
||||
|
||||
// NewPage contains the page and associated meta.
|
||||
type NewPage struct {
|
||||
Page Page `json:"page"`
|
||||
Meta Meta `json:"meta"`
|
||||
}
|
||||
|
||||
|
||||
// PageSequenceRequest details a page ID and its sequence within the document.
|
||||
type PageSequenceRequest struct {
|
||||
PageID string `json:"pageId"`
|
||||
Sequence float64 `json:"sequence"`
|
||||
}
|
||||
|
||||
// PageLevelRequest details a page ID and level.
|
||||
type PageLevelRequest struct {
|
||||
PageID string `json:"pageId"`
|
||||
Level int `json:"level"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue