19 lines
471 B
Go
19 lines
471 B
Go
|
// internal/books/model.go
|
||
|
package books
|
||
|
|
||
|
type Book struct {
|
||
|
Title string `yaml:"title"`
|
||
|
Author string `yaml:"author"`
|
||
|
Link string `yaml:"link"`
|
||
|
Year int `yaml:"year"`
|
||
|
Rate float64 `yaml:"rate"`
|
||
|
Progress string `yaml:"progress"`
|
||
|
Image string `yaml:"image"`
|
||
|
Poster string `yaml:"poster-image"`
|
||
|
Background string `yaml:"background-image"`
|
||
|
Date string `yaml:"date"`
|
||
|
Tags []string
|
||
|
}
|
||
|
|
||
|
type Books []Book
|