72 lines
1.9 KiB
Go
72 lines
1.9 KiB
Go
package client
|
|
|
|
type response map[string]BookDetails
|
|
|
|
type BookDetails struct {
|
|
Authors []Authors `json:"authors"`
|
|
Classifications Classifications `json:"classifications"`
|
|
Cover Cover `json:"cover"`
|
|
Excerpts []Excerpts `json:"excerpts"`
|
|
Identifiers Identifiers `json:"identifiers"`
|
|
Links []Links `json:"links"`
|
|
NumberOfPages int `json:"number_of_pages"`
|
|
PublishDate string `json:"publish_date"`
|
|
Publishers []Publishers `json:"publishers"`
|
|
PublishPlaces []PublishPlaces `json:"publish_places"`
|
|
Subjects []Subjects `json:"subjects"`
|
|
Title string `json:"title"`
|
|
URL string `json:"url"`
|
|
Weight string `json:"weight"`
|
|
}
|
|
|
|
type Authors struct {
|
|
Name string `json:"name"`
|
|
URL string `json:"url"`
|
|
}
|
|
|
|
type Classifications struct {
|
|
DeweyDecimalClass []string `json:"dewey_decimal_class"`
|
|
LcClassifications []string `json:"lc_classifications"`
|
|
}
|
|
|
|
type Cover struct {
|
|
Small string `json:"small"`
|
|
Medium string `json:"medium"`
|
|
Large string `json:"large"`
|
|
}
|
|
|
|
type Excerpts struct {
|
|
Text string `json:"text"`
|
|
Comment string `json:"comment"`
|
|
}
|
|
|
|
type Identifiers struct {
|
|
Amazon []string `json:"amazon"`
|
|
Goodreads []string `json:"goodreads"`
|
|
Google []string `json:"google"`
|
|
Isbn10 []string `json:"isbn_10"`
|
|
Isbn13 []string `json:"isbn_13"`
|
|
Lccn []string `json:"lccn"`
|
|
Librarything []string `json:"librarything"`
|
|
Oclc []string `json:"oclc"`
|
|
ProjectGutenberg []string `json:"project_gutenberg"`
|
|
}
|
|
|
|
type Links struct {
|
|
Title string `json:"title"`
|
|
URL string `json:"url"`
|
|
}
|
|
|
|
type Publishers struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type PublishPlaces struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type Subjects struct {
|
|
Name string `json:"name"`
|
|
URL string `json:"url"`
|
|
}
|