Well this doesnt work yet, and is likely not the correct way, this needs more thought put into it, probably a complete rewrite is advisable because bringing this into a shape where it could have multiple Providers is hard
This commit is contained in:
18
internal/database/manga.go
Normal file
18
internal/database/manga.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package database
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"mangaGetter/internal/provider"
|
||||
)
|
||||
|
||||
type Manga struct {
|
||||
Id int
|
||||
Provider provider.Provider
|
||||
Rating int
|
||||
Title string
|
||||
TimeStampUnix int64
|
||||
Thumbnail *bytes.Buffer
|
||||
|
||||
// Not in DB
|
||||
LatestChapter *Chapter
|
||||
}
|
||||
Reference in New Issue
Block a user