add info relative to levelups in shopitem
This commit is contained in:
parent
be3f38e715
commit
b8981ad8ec
19
shop_item.go
19
shop_item.go
@ -1,16 +1,27 @@
|
|||||||
package sorare
|
package sorare
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
type ShopItem struct {
|
type ShopItem struct {
|
||||||
|
TypeName string `graphql:"__typename"`
|
||||||
ShopItemInterface struct {
|
ShopItemInterface struct {
|
||||||
Id string `graphql:"id"`
|
Id string `graphql:"id"`
|
||||||
Name string `graphql:"name"`
|
Name string `graphql:"name"`
|
||||||
Price int `graphql:"price"`
|
Price int `graphql:"price"`
|
||||||
|
MyBalance int `graphql:"myBalance"`
|
||||||
|
LimitPerUser int `graphql:"limitPerUser"`
|
||||||
|
MyLimitResetAt time.Time `graphql:"myLimitResetAt"`
|
||||||
|
MyPurchasesCount int `graphql:"myPurchasesCount"`
|
||||||
} `graphql:"... on ShopItemInterface"`
|
} `graphql:"... on ShopItemInterface"`
|
||||||
JerseyShopItem struct {
|
JerseyShopItem struct {
|
||||||
CurrentStockCount int `graphql:"currentStockCount"`
|
CurrentStockCount int `graphql:"currentStockCount"`
|
||||||
InitialStockCount int `graphql:"initialStockCount"`
|
InitialStockCount int `graphql:"initialStockCount"`
|
||||||
LimitPerUser int `graphql:"limitPerUser"`
|
|
||||||
} `graphql:"... on JerseyShopItem"`
|
} `graphql:"... on JerseyShopItem"`
|
||||||
|
LevelUpShopItem struct {
|
||||||
|
Rarity string `graphql:"rarity"`
|
||||||
|
} `graphql:"... on LevelUpShopItem"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShopItemType string
|
type ShopItemType string
|
||||||
|
Loading…
Reference in New Issue
Block a user