-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
40 lines (37 loc) · 1.49 KB
/
types.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
package main
import (
"time"
)
type Content struct {
ID string `json:"id"`
OwnerID string `json:"owner_id"`
ParentID interface{} `json:"parent_id"`
Slug string `json:"slug"`
Title string `json:"title"`
Status string `json:"status"`
SourceURL interface{} `json:"source_url"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
PublishedAt time.Time `json:"published_at"`
DeletedAt interface{} `json:"deleted_at"`
Tabcoins int `json:"tabcoins"`
OwnerUsername string `json:"owner_username"`
ChildrenDeepCount int `json:"children_deep_count"`
}
type Article struct {
ID string `json:"id"`
OwnerID string `json:"owner_id"`
ParentID interface{} `json:"parent_id"`
Slug string `json:"slug"`
Title string `json:"title"`
Body string `json:"body"`
Status string `json:"status"`
SourceURL interface{} `json:"source_url"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
PublishedAt time.Time `json:"published_at"`
DeletedAt interface{} `json:"deleted_at"`
OwnerUsername string `json:"owner_username"`
Tabcoins int `json:"tabcoins"`
ChildrenDeepCount int `json:"children_deep_count"`
}