-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrowi_api_response.go
94 lines (91 loc) · 3.72 KB
/
growi_api_response.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
90
91
92
93
94
package infrastructure
import "time"
// auto generate https://mholt.github.io/json-to-go/
type GrowiPageGetResponse struct {
Page struct {
Status string `json:"status"`
Grant int `json:"grant"`
GrantedUsers []interface{} `json:"grantedUsers"`
Liker []interface{} `json:"liker"`
SeenUsers []string `json:"seenUsers"`
CommentCount int `json:"commentCount"`
PageID string `json:"_id"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
Path string `json:"path"`
Creator struct {
IsGravatarEnabled bool `json:"isGravatarEnabled"`
IsEmailPublished bool `json:"isEmailPublished"`
Lang string `json:"lang"`
Status int `json:"status"`
Admin bool `json:"admin"`
ID string `json:"_id"`
CreatedAt time.Time `json:"createdAt"`
Name string `json:"name"`
Username string `json:"username"`
Email string `json:"email"`
LastLoginAt time.Time `json:"lastLoginAt"`
ImageAttachment struct {
CreaterImage_ID string `json:"_id"`
FilePathProxied string `json:"filePathProxied"`
DownloadPathProxied string `json:"downloadPathProxied"`
CreaterImageID string `json:"id"`
} `json:"imageAttachment"`
} `json:"creator"`
LastUpdateUser struct {
IsGravatarEnabled bool `json:"isGravatarEnabled"`
IsEmailPublished bool `json:"isEmailPublished"`
Lang string `json:"lang"`
Status int `json:"status"`
Admin bool `json:"admin"`
ID string `json:"_id"`
CreatedAt time.Time `json:"createdAt"`
Name string `json:"name"`
Username string `json:"username"`
Email string `json:"email"`
LastLoginAt time.Time `json:"lastLoginAt"`
ImageAttachment struct {
LastUpdateImage_ID string `json:"_id"`
FilePathProxied string `json:"filePathProxied"`
DownloadPathProxied string `json:"downloadPathProxied"`
LastUpdateImageID string `json:"id"`
} `json:"imageAttachment"`
} `json:"lastUpdateUser"`
RedirectTo interface{} `json:"redirectTo"`
GrantedGroup interface{} `json:"grantedGroup"`
V int `json:"__v"`
Revision struct {
Format string `json:"format"`
ID string `json:"_id"`
CreatedAt time.Time `json:"createdAt"`
Path string `json:"path"`
Body string `json:"body"`
Author struct {
IsGravatarEnabled bool `json:"isGravatarEnabled"`
IsEmailPublished bool `json:"isEmailPublished"`
Lang string `json:"lang"`
Status int `json:"status"`
Admin bool `json:"admin"`
ID string `json:"_id"`
CreatedAt time.Time `json:"createdAt"`
Name string `json:"name"`
Username string `json:"username"`
Email string `json:"email"`
LastLoginAt time.Time `json:"lastLoginAt"`
ImageAttachment struct {
RevisionImage_ID string `json:"_id"`
FilePathProxied string `json:"filePathProxied"`
DownloadPathProxied string `json:"downloadPathProxied"`
RevisionImageID string `json:"id"`
} `json:"imageAttachment"`
} `json:"author"`
V int `json:"__v"`
} `json:"revision"`
ID string `json:"id"`
} `json:"page"`
Ok bool `json:"ok"`
}
type GrowiGetPageTagResponse struct {
Tags []string `json:"tags"`
Ok bool `json:"ok"`
}