-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpage.go
31 lines (30 loc) · 1.32 KB
/
page.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package nationbuilder
// Common page fields
type Page struct {
// Page slug - computer from name with mangling if a collision occurs. Optional field.
Slug string `json:"slug,omitempty"`
// Path of the page
Path string `json:"path,omitempty"`
// Page display status - 'published', 'drafted'. Required field.
Status string `json:"status,omitempty"`
// The slug of the site to which the basic page belongs
SiteSlug string `json:"site_slug,omitempty"`
// Page name - it's from this that other values like the slug and headline are computed. Required field.
Name string `json:"name,omitempty"`
// Page headline. Optional field.
Headline string `json:"headline,omitempty"`
// HTML page title - computed from the name if not provided. Optional field.
Title string `json:"title,omitempty"`
// Page excerpt - used for visiting bots. Optional field.
Excerpt string `json:"excerpt,omitempty"`
// Numeric ID of the person who authored the page
AuthorID int `json:"author_id,omitempty"`
// Page publication date in format described by DateFormat
PublishedAt *Date `json:"published_at,omitempty"`
// The external ID, if any, that a page has (e.g. a previous wordpress page). Optional field.
ExternalID string `json:"external_id,omitempty"`
// Page tags
Tags []string `json:"tags,omitempty"`
// Page ID
ID int `json:"id,omitempty"`
}