-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmodel.go
More file actions
77 lines (68 loc) · 2.23 KB
/
Copy pathmodel.go
File metadata and controls
77 lines (68 loc) · 2.23 KB
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
package zlib
type Book struct {
ID string `json:"id"`
ISBN string `json:"isbn,omitempty"`
URL string `json:"url"`
Cover string `json:"cover,omitempty"`
Name string `json:"name"`
Authors []string `json:"authors,omitempty"`
Publisher string `json:"publisher,omitempty"`
Year string `json:"year,omitempty"`
Language string `json:"language,omitempty"`
Extension string `json:"extension,omitempty"`
Size string `json:"size,omitempty"`
Rating string `json:"rating,omitempty"`
Quality string `json:"quality,omitempty"`
Description string `json:"description,omitempty"`
Categories string `json:"categories,omitempty"`
Edition string `json:"edition,omitempty"`
DownloadURL string `json:"download_url,omitempty"`
}
type SearchResult struct {
Books []Book `json:"books"`
Page int `json:"page"`
TotalPages int `json:"total_pages"`
}
type DownloadLimit struct {
DailyAmount int `json:"daily_amount"`
DailyAllowed int `json:"daily_allowed"`
DailyRemaining int `json:"daily_remaining"`
DailyReset string `json:"daily_reset"`
}
type DownloadHistoryItem struct {
Name string `json:"name"`
URL string `json:"url"`
DownloadURL string `json:"download_url,omitempty"`
Extension string `json:"extension,omitempty"`
Size string `json:"size,omitempty"`
Date string `json:"date"`
}
type DownloadHistoryResult struct {
Items []DownloadHistoryItem `json:"items"`
Page int `json:"page"`
TotalPages int `json:"total_pages"`
}
type Booklist struct {
Name string `json:"name"`
URL string `json:"url"`
Description string `json:"description,omitempty"`
Author string `json:"author,omitempty"`
Count string `json:"count,omitempty"`
Views string `json:"views,omitempty"`
}
type BooklistResult struct {
Lists []Booklist `json:"lists"`
Page int `json:"page"`
TotalPages int `json:"total_pages"`
}
type SearchOptions struct {
Exact bool
FromYear int
ToYear int
Languages []Language
Extensions []Extension
}
type FullTextSearchOptions struct {
SearchOptions
Phrase bool
}