/
model.go
55 lines (49 loc) · 1.68 KB
/
model.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
53
54
55
package qishutaLib
type BookInfoModel struct {
BookId string `json:"book_id"`
BookName string `json:"book_name"`
Author string `json:"author"`
Cover string `json:"cover"`
UpdateDate string `json:"update_date"`
Status string `json:"status"`
Download string `json:"download"`
ClickInfo string `json:"click_info"`
FileSize string `json:"file_size"`
Description string `json:"description"`
}
type TypeListBookInfoModel struct {
Index string `json:"index"`
BookId string `json:"book_id"`
BookName string `json:"book_name"`
Cover string `json:"cover"`
Description string `json:"description"`
}
type CatalogModel struct {
BookID string `json:"book_id"`
ChapterIndex string `json:"chapter_index"`
ChapterTitle string `json:"chapter_title"`
ChapterId string `json:"chapter_id"`
}
type ContentModel struct {
ID string `json:"_id" bson:"_id"`
BookId string `json:"book_id" bson:"book_id"`
ChapterId string `json:"chapter_id" bson:"chapter_id"`
ChapterTitle string `json:"chapter_title" bson:"chapter_title"`
Content string `json:"content" bson:"content"`
ChapterWord int `json:"chapter_word" bson:"chapter_word"`
}
type SearchModel struct {
Index string `json:"index"`
BookId string `json:"book_id"`
BookName string `json:"book_name"`
BookAuthor string `json:"book_author"`
LatestChapter string `json:"latest_chapter"`
Update string `json:"update"`
}
type BookshelfModel struct {
BookId string `json:"book_id"`
BookName string `json:"book_name"`
Index string `json:"index"`
LatestChapter string `json:"latest_chapter"`
UpdateDate string `json:"update_date"`
}