add info relative to levelups in shopitem

This commit is contained in:
Laurent Le Houerou 2024-04-16 15:00:57 +04:00
parent be3f38e715
commit b8981ad8ec
1 changed files with 15 additions and 4 deletions

View File

@ -1,16 +1,27 @@
package sorare
import (
"time"
)
type ShopItem struct {
TypeName string `graphql:"__typename"`
ShopItemInterface struct {
Id string `graphql:"id"`
Name string `graphql:"name"`
Price int `graphql:"price"`
Id string `graphql:"id"`
Name string `graphql:"name"`
Price int `graphql:"price"`
MyBalance int `graphql:"myBalance"`
LimitPerUser int `graphql:"limitPerUser"`
MyLimitResetAt time.Time `graphql:"myLimitResetAt"`
MyPurchasesCount int `graphql:"myPurchasesCount"`
} `graphql:"... on ShopItemInterface"`
JerseyShopItem struct {
CurrentStockCount int `graphql:"currentStockCount"`
InitialStockCount int `graphql:"initialStockCount"`
LimitPerUser int `graphql:"limitPerUser"`
} `graphql:"... on JerseyShopItem"`
LevelUpShopItem struct {
Rarity string `graphql:"rarity"`
} `graphql:"... on LevelUpShopItem"`
}
type ShopItemType string