-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspace.go
50 lines (44 loc) · 1.2 KB
/
space.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
package confluence
//Confluence的空间
type Space struct {
Id int `json:"id,omitempty"`
Key string `json:"key,omitempty"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
Icon *SpaceIcon `json:"icon,omitempty"`
Description *SpaceDescription `json:"description,omitempty"`
HomePage *Content `json:"homePage,omitempty"`
Metadata *SpaceMetadata `json:"metadata,omitempty"`
Links *LinkResp `json:"_links,omitempty"`
Expandable *ExpandableResponse `json:"_expandable,omitempty"`
}
//Confluence的空间描述
type SpaceDescription struct {
Plain RepresentationValue
View RepresentationValue
}
//Confluence的空间描述值
type RepresentationValue struct {
Representation string
Value string
}
//Confluence的空间附加信息
type SpaceMetadata struct {
Labels struct {
PageResp
Results []SpaceLabel
}
}
//Confluence的空间标签
type SpaceLabel struct {
Prefix string
Name string
Id string
}
//Confluence的空间图标
type SpaceIcon struct {
Path string
Width int
Height int
IsDefault bool
}