/
confluence_page.go
89 lines (76 loc) · 2.97 KB
/
confluence_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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package models
type ChildPageChunkLinksScheme struct {
Next string `json:"next,omitempty"`
}
type ChildPageChunkScheme struct {
Results []*ChildPageScheme `json:"results,omitempty"`
Links *ChildPageChunkLinksScheme `json:"_links,omitempty"`
}
type ChildPageScheme struct {
ID string `json:"id,omitempty"`
Status string `json:"status,omitempty"`
Title string `json:"title,omitempty"`
SpaceID string `json:"spaceId,omitempty"`
ChildPosition int `json:"childPosition,omitempty"`
}
type PageOptionsScheme struct {
PageIDs []int
SpaceIDs []int
Sort string
Status []string
Title string
BodyFormat string
}
type PageChunkScheme struct {
Results []*PageScheme `json:"results,omitempty"`
Links *PageChunkLinksScheme `json:"_links,omitempty"`
}
type PageChunkLinksScheme struct {
Next string `json:"next,omitempty"`
}
type PageScheme struct {
ID string `json:"id,omitempty"`
Status string `json:"status,omitempty"`
Title string `json:"title,omitempty"`
SpaceID string `json:"spaceId,omitempty"`
ParentID string `json:"parentId,omitempty"`
AuthorID string `json:"authorId,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
ParentType string `json:"parentType,omitempty"`
Position int `json:"position,omitempty"`
Version *PageVersionScheme `json:"version,omitempty"`
Body *PageBodyScheme `json:"body,omitempty"`
}
type PageVersionScheme struct {
CreatedAt string `json:"createdAt,omitempty"`
Message string `json:"message,omitempty"`
Number int `json:"number,omitempty"`
MinorEdit bool `json:"minorEdit,omitempty"`
AuthorID string `json:"authorId,omitempty"`
}
type PageBodyScheme struct {
Storage *PageBodyRepresentationScheme `json:"storage,omitempty"`
AtlasDocFormat *PageBodyRepresentationScheme `json:"atlas_doc_format,omitempty"`
}
type PageCreatePayloadScheme struct {
SpaceID string `json:"spaceId,omitempty"`
Status string `json:"status,omitempty"`
Title string `json:"title,omitempty"`
Body *PageBodyRepresentationScheme `json:"body,omitempty"`
}
type PageBodyRepresentationScheme struct {
Representation string `json:"representation,omitempty"`
Value string `json:"value,omitempty"`
}
type PageUpdatePayloadScheme struct {
ID int `json:"id,omitempty"`
Status string `json:"status,omitempty"`
Title string `json:"title,omitempty"`
SpaceID int `json:"spaceId,omitempty"`
Body *PageBodyRepresentationScheme `json:"body,omitempty"`
Version *PageUpdatePayloadVersionScheme `json:"version,omitempty"`
}
type PageUpdatePayloadVersionScheme struct {
Number int `json:"number,omitempty"`
Message string `json:"message,omitempty"`
}