hugo-medialog/internal/books/model.go

21 lines
496 B
Go
Raw Normal View History

2024-10-09 11:12:44 +02:00
package books
2024-10-08 21:08:01 +02:00
2024-10-09 11:12:44 +02:00
type Book struct {
2024-10-10 14:13:40 +02:00
Title string `yaml:"title"`
Slug string `yaml:"slug"`
Author string `yaml:"author"`
Link string `yaml:"link"`
Year int `yaml:"year"`
ID string `yaml:"id"`
ISBN string `yaml:"isbn"`
Rate float64 `yaml:"rate"`
Pages int `yaml:"pages"`
Progress string `yaml:"progress"`
Image string `yaml:"image"`
Date string `yaml:"date"`
New bool `yaml:"new"`
2024-10-10 14:13:40 +02:00
Tags []string
2024-10-08 21:08:01 +02:00
}
2024-10-09 11:12:44 +02:00
type Books []Book