-
Notifications
You must be signed in to change notification settings - Fork 5
/
wiki.models.go
37 lines (32 loc) · 1.14 KB
/
wiki.models.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
package taigo
import "time"
// WikiPage -> https://taigaio.github.io/taiga-doc/dist/api.html#object-wiki-detail
type WikiPage struct {
TaigaBaseObject
Content string `json:"content"`
CreatedDate time.Time `json:"created_date"`
Editions int `json:"editions"`
HTML string `json:"html"`
ID int `json:"id"`
IsWatcher bool `json:"is_watcher"`
LastModifier int `json:"last_modifier"`
ModifiedDate time.Time `json:"modified_date"`
Owner int `json:"owner"`
Project int `json:"project"`
ProjectExtraInfo ProjectExtraInfo `json:"project_extra_info"`
Slug string `json:"slug"`
TotalWatchers int `json:"total_watchers"`
Version int `json:"version"`
}
// GetID returns the ID
func (w *WikiPage) GetID() int {
return w.ID
}
// GetVersion return the version
func (w *WikiPage) GetVersion() int {
return w.Version
}
// GetProject returns the project ID
func (w *WikiPage) GetProject() int {
return w.Project
}