mirror of
https://github.com/bestnite/bilinovel-downloader.git
synced 2025-10-26 09:11:01 +00:00
refactor
This commit is contained in:
37
model/novel.go
Normal file
37
model/novel.go
Normal file
@@ -0,0 +1,37 @@
|
||||
package model
|
||||
|
||||
type ChaperContent struct {
|
||||
Html string
|
||||
Images map[string][]byte
|
||||
}
|
||||
|
||||
type Chapter struct {
|
||||
Id int
|
||||
NovelId int
|
||||
VolumeId int
|
||||
Title string
|
||||
Url string
|
||||
Content *ChaperContent
|
||||
}
|
||||
|
||||
type Volume struct {
|
||||
Id int
|
||||
SeriesIdx int
|
||||
Title string
|
||||
Url string
|
||||
CoverUrl string
|
||||
Cover []byte
|
||||
Description string
|
||||
Authors []string
|
||||
Chapters []*Chapter
|
||||
NovelId int
|
||||
NovelTitle string
|
||||
}
|
||||
|
||||
type Novel struct {
|
||||
Id int
|
||||
Title string
|
||||
Description string
|
||||
Authors []string
|
||||
Volumes []*Volume
|
||||
}
|
||||
Reference in New Issue
Block a user