Files
mangaGetter/internal/view/viewmodels.go
2024-06-08 20:57:20 +02:00

31 lines
489 B
Go

package view
import "github.com/pablu23/mangaGetter/internal/database"
type Image struct {
Path string
Index int
}
type ImageViewModel struct {
Title string
Images []Image
}
type MangaViewModel struct {
ID int
Title string
Number string
LastNumber string
LastTime string
Url string
ThumbnailUrl string
Enabled bool
}
type MenuViewModel struct {
Archive bool
Settings map[string]database.Setting
Mangas []MangaViewModel
}