-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
52 lines (45 loc) · 1.25 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
41
42
43
44
45
46
47
48
49
50
51
52
package main
import "time"
type RawExtractBook struct {
ASIN string `json:"asin"`
Title string `json:"title"`
Authors string `json:"authors"`
Highlights []RawExtractHighlight `json:"highlights"`
}
type RawExtractHighlight struct {
Text string `json:"text"`
Location struct {
Value int `json:"value"`
URL string `json:"url"`
} `json:"location"`
IsNoteOnly bool `json:"isNoteOnly"`
Note string `json:"note"`
}
type Book struct {
ISBN string `json:"isbn"`
Title string `json:"title"`
Authors string `json:"authors"`
CreatedAt time.Time `json:"created_at"`
}
type Highlight struct {
ID int `json:"id"`
Text string `json:"text"`
Location string `json:"location"`
Note string `json:"note"`
UserID int `json:"userId"`
BookID string `json:"bookId"`
CreatedAt time.Time `json:"created_at"`
}
type User struct {
ID int `json:"id"`
Email string `json:"email"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
CreatedAt time.Time `json:"created_at"`
}
type DailyInsight struct {
Text string
Note string
BookAuthors string
BookTitle string
}