blob: 616830ccf2e9fb8651bdf10b3e13cd6cd8d1f0a0 (
plain) (
blame)
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
|
package object // import "github.com/SevereCloud/vksdk/v2/object"
// Pages privacy settings.
const (
PagesPrivacyCommunityManagers = iota // community managers only
PagesPrivacyCommunityMembers // community members only
PagesPrivacyEveryone // everyone
)
// PagesWikipage struct.
type PagesWikipage struct {
CreatorID int `json:"creator_id"` // Page creator ID
CreatorName int `json:"creator_name"` // Page creator name
EditorID int `json:"editor_id"` // Last editor ID
EditorName string `json:"editor_name"` // Last editor name
GroupID int `json:"group_id"` // Community ID
ID int `json:"id"` // Page ID
Title string `json:"title"` // Page title
Views int `json:"views"` // Views number
WhoCanEdit int `json:"who_can_edit"` // Edit settings of the page
WhoCanView int `json:"who_can_view"` // View settings of the page
}
// PagesWikipageFull struct.
type PagesWikipageFull struct {
// Date when the page has been created in Unixtime.
Created int `json:"created"`
// Page creator ID.
CreatorID int `json:"creator_id"`
// Information whether current user can edit the page.
CurrentUserCanEdit BaseBoolInt `json:"current_user_can_edit"`
// Information whether current user can edit the page access settings.
CurrentUserCanEditAccess BaseBoolInt `json:"current_user_can_edit_access"`
// Date when the page has been edited in Unixtime.
Edited int `json:"edited"`
// Last editor ID.
EditorID int `json:"editor_id"`
// Page ID.
PageID int `json:"page_id"`
// Community ID.
GroupID int `json:"group_id"`
// Page content, HTML.
HTML string `json:"html"`
// Page ID.
ID int `json:"id"`
// Page content, wiki.
Source string `json:"source"`
// Page title.
Title string `json:"title"`
// URL of the page preview.
ViewURL string `json:"view_url"`
// Views number.
Views int `json:"views"`
// Edit settings of the page.
WhoCanEdit int `json:"who_can_edit"`
// View settings of the page.
WhoCanView int `json:"who_can_view"`
VersionCreated int `json:"version_created"`
}
// PagesWikipageHistory struct.
//
// BUG(VK): https://vk.com/dev/pages.getHistory edited and date.
type PagesWikipageHistory struct {
Date int `json:"date"` // Date when the page has been edited in Unixtime
EditorID int `json:"editor_id"` // Last editor ID
EditorName string `json:"editor_name"` // Last editor name
ID int `json:"id"` // Version ID
Length int `json:"length"` // Page size in bytes
}
|