Adapted bot to new StarCity website

This commit is contained in:
Artyom Belousov 2019-11-22 17:12:57 +03:00
parent 10af0ea3c8
commit b965115cb3
3 changed files with 59 additions and 47 deletions

View file

@ -22,3 +22,20 @@ func (c *Card) getName() string {
}
return c.Name
}
type ScgResponse struct {
Response ScgResponseContainer `json:"response"`
}
type ScgResponseContainer struct {
Data []ScgConditionContainer `json:"data"`
}
type ScgConditionContainer struct {
Price float64 `json:"price"`
OptionValues []ScgCondition `json:"option_values"`
}
type ScgCondition struct {
Label string `json:"label"`
}