34 lines
1.1 KiB
Go
34 lines
1.1 KiB
Go
|
|
package model
|
||
|
|
|
||
|
|
type Recipe struct {
|
||
|
|
Result string `json:"result"`
|
||
|
|
ResultCount string `json:"result_count,omitempty"`
|
||
|
|
Ingredients []string `json:"ingredients,omitempty"`
|
||
|
|
Station string `json:"station,omitempty"`
|
||
|
|
SourcePage string `json:"source_page,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type Item struct {
|
||
|
|
Name string `json:"name"`
|
||
|
|
URL string `json:"url"`
|
||
|
|
Categories []string `json:"categories,omitempty"`
|
||
|
|
Infobox map[string]string `json:"infobox,omitempty"`
|
||
|
|
Effects []string `json:"effects,omitempty"`
|
||
|
|
EffectLinks []string `json:"effect_links,omitempty"`
|
||
|
|
Recipes []Recipe `json:"recipes,omitempty"`
|
||
|
|
Description string `json:"description,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type Effect struct {
|
||
|
|
Name string `json:"name"`
|
||
|
|
URL string `json:"url"`
|
||
|
|
Categories []string `json:"categories,omitempty"`
|
||
|
|
Infobox map[string]string `json:"infobox,omitempty"`
|
||
|
|
Description string `json:"description,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type Dataset struct {
|
||
|
|
Items []Item `json:"items"`
|
||
|
|
Effects []Effect `json:"effects"`
|
||
|
|
}
|