Documentation ¶
Index ¶
- func DownloadPreviewImages(id string, dir string) error
- func NormalizeFilename(filename string) string
- func WriteBookInfo(info *BookInfo, filename string) error
- type BookInfo
- type ExpectsAcceptanceOf
- type GoodsInfo
- type NameWithType
- type PagePreview
- type PotentialAction
- type PreviewImage
- type PreviewInput
- type WorkExample
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadPreviewImages ¶
func NormalizeFilename ¶
func WriteBookInfo ¶
Types ¶
type BookInfo ¶
type BookInfo struct { Title string Isbn string Author string PublishedDate string Publisher string Price string PriceCurrency string }
func GetBookInfo ¶
func (*BookInfo) GetPublishedYear ¶
type ExpectsAcceptanceOf ¶
type GoodsInfo ¶
type GoodsInfo struct { Name string `json:"name"` Description string `json:"description"` Genre string `json:"genre"` Keywords string `json:"keywords"` Author NameWithType `json:"author"` Publisher NameWithType `json:"publisher"` Url string `json:"url"` WorkExample []WorkExample `json:"workExample"` }
type NameWithType ¶
type PagePreview ¶
type PagePreview struct { GoodsNo int32 OrderNo int8 OriginalName string SmallImage PreviewImage MiddleImage PreviewImage LargeImage PreviewImage Bookmark string }
type PotentialAction ¶
type PotentialAction struct {
ExpectsAcceptanceOf ExpectsAcceptanceOf `json:"expectsAcceptanceOf"`
}
type PreviewImage ¶
type PreviewInput ¶
type PreviewInput struct { Pages struct { Page []PagePreview `json:"PAGE"` } PageDomain string `json:"pagedomain"` GoodsNo string `json:"goodsno"` }
type WorkExample ¶
type WorkExample struct { Isbn string `json:"isbn"` DatePublished string `json:"datePublished"` PotentialAction PotentialAction `json:"potentialAction"` }
Click to show internal directories.
Click to hide internal directories.