1
This commit is contained in:
parent
360c4615c3
commit
fc6dc33843
@ -76,3 +76,38 @@ type NftStacking struct {
|
|||||||
ItemId int32
|
ItemId int32
|
||||||
Quality int32
|
Quality int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type NftStackingPo struct {
|
||||||
|
TokenId string `json:"t"`
|
||||||
|
ItemId int32 `json:"i"`
|
||||||
|
Quality int32 `json:"q"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type ContractStackingPo struct {
|
||||||
|
NetId int32 `json:"net_id"`
|
||||||
|
ContractAddress string `json:"contract_address"`
|
||||||
|
TokenType int32 `json:"token_type"`
|
||||||
|
Nfts []*NftStackingPo `json:"nfts"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type UserStackingPo struct {
|
||||||
|
AccountAddress string `json:"account_address"`
|
||||||
|
Contracts []*ContractStackingPo `json:"contracts"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewNftStackingPo() *NftStackingPo {
|
||||||
|
p := new(NftStackingPo)
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewContractStackingPo() *ContractStackingPo {
|
||||||
|
p := new(ContractStackingPo)
|
||||||
|
p.Nfts = []*NftStackingPo{}
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewUserStackingPo() *UserStackingPo {
|
||||||
|
p := new(UserStackingPo)
|
||||||
|
p.Contracts = []*ContractStackingPo{}
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user