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

page codebase moved to new API

This commit is contained in:
Harvey Kandola 2017-08-01 15:35:13 +01:00
parent f7bcf1366c
commit d5bc9bb7cb
7 changed files with 1718 additions and 25 deletions

View file

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