mirror of
https://codeberg.org/scip/kleingebaeck.git
synced 2026-11-23 06:59:00 +01:00
reorder for better readability
This commit is contained in:
20
ad.go
20
ad.go
@@ -29,16 +29,8 @@ type Index struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Ad struct {
|
type Ad struct {
|
||||||
Title string `goquery:"h1"`
|
Title string `goquery:"h1"`
|
||||||
Slug string
|
Details string `goquery:".addetailslist--detail,text"`
|
||||||
ID string
|
|
||||||
Details string `goquery:".addetailslist--detail,text"`
|
|
||||||
Attributes map[string]string // processed afterwards
|
|
||||||
Condition string // post processed from details for backward compatibility
|
|
||||||
Type string // post processed from details for backward compatibility
|
|
||||||
Color string // post processed from details for backward compatibility
|
|
||||||
Material string // post processed from details for backward compatibility
|
|
||||||
Category string
|
|
||||||
CategoryTree []string `goquery:".breadcrump-link,text"`
|
CategoryTree []string `goquery:".breadcrump-link,text"`
|
||||||
Price string `goquery:"h2#viewad-price"`
|
Price string `goquery:"h2#viewad-price"`
|
||||||
Created string `goquery:"#viewad-extra-info,text"`
|
Created string `goquery:"#viewad-extra-info,text"`
|
||||||
@@ -46,6 +38,14 @@ type Ad struct {
|
|||||||
Images []string `goquery:".galleryimage-element img,[src]"`
|
Images []string `goquery:".galleryimage-element img,[src]"`
|
||||||
Shipping string `goquery:".boxedarticle--details--shipping,text"` // not always filled
|
Shipping string `goquery:".boxedarticle--details--shipping,text"` // not always filled
|
||||||
Expire string
|
Expire string
|
||||||
|
Slug string
|
||||||
|
ID string
|
||||||
|
Attributes map[string]string // processed afterwards
|
||||||
|
Condition string // post processed from details for backward compatibility
|
||||||
|
Type string // post processed from details for backward compatibility
|
||||||
|
Color string // post processed from details for backward compatibility
|
||||||
|
Material string // post processed from details for backward compatibility
|
||||||
|
Category string
|
||||||
|
|
||||||
// runtime computed
|
// runtime computed
|
||||||
Year, Day, Month string
|
Year, Day, Month string
|
||||||
|
|||||||
Reference in New Issue
Block a user