Documentation ¶
Index ¶
- func EquipmentPosition(traitType proto.NftTraitType) (position proto.AvatarPosition)
- func GetConsumableData(traitData []*proto.NftTraitData) *proto.NFTConsumableInfo
- func GetNftEntityAttributeDisType(displayType string) proto.AttributeDisplayType
- func GetNftEntityAttributes(nft NFT) []*proto.AttributeData
- func GetNftMetaData(nft NFT) *proto.NftMetadata
- func GetNftTraitData(nft NFT) []*proto.NftTraitData
- func GetNftTraitType(nft NFT) (traitType proto.NftTraitType)
- func GetNftUseLevel(traitData []*proto.NftTraitData) (needLv int32)
- func TileIdToXy(landId int64) (x, y int32)
- func ToProtoLandData(l LandData) *proto.LandData
- func ToProtoNftData(nft NFT) *proto.NftData
- func XyToTileId(x, y int32) int64
- type AppId
- type Auth
- type AuthUserType
- type BatchBurnNFTInput
- type BatchBurnNFTOutput
- type BatchMintNFTWithItemIdInput
- type BatchMintNFTWithItemIdInputQualitysElem
- type BatchMintNFTWithItemIdOutput
- type BuildData
- type BuildInput
- type BuildOutput
- type BurnDitaminInput
- type BurnDitaminOutput
- type BurnNFTInput
- type BurnNFTOutput
- type CanBuildNFTInput
- type CanBuildNFTOutput
- type ChargedInput
- type ChargedOutput
- type CheckQuestionAnswerInput
- type CheckQuestionAnswerOutput
- type CloseServer
- type CollectionInput
- type CollectionOutput
- type CreatePVPRoomInput
- type CreatePVPRoomOutput
- type DeductUserExpInput
- type DeductUserExpOutput
- type DitaminBurn
- type DitaminBurnSource
- type DitaminProduce
- type DitaminProduceSource
- type FinishQuestion
- type ForgetUserRecipesInput
- type ForgetUserRecipesOutput
- type GameDataServiceAction
- type GetAllBuildDataInput
- type GetAllBuildDataOutput
- type GetAllLandDataInput
- type GetAllLandDataOutput
- type GetCurrentPkSessionIdInput
- type GetCurrentPkSessionIdOutput
- type GetPlayerInfoByUserIdInput
- type GetPlayerInfoByUserIdOutput
- type GetPlayerItemSlotsInput
- type GetPlayerItemSlotsOutput
- type GetPlayerPvpProfileInput
- type GetPlayerPvpProfileOutput
- type GetPlayerPvpRankInput
- type GetPlayerPvpRankOutput
- type GetPlayerUsingNftsByUserIdInput
- type GetPlayerUsingNftsByUserIdOutput
- type GetPvpHistoryInput
- type GetPvpHistoryOutput
- type GetQuestionResourcesByTypesInput
- type GetQuestionResourcesByTypesOutput
- type GetQuestionsByTypesRandomInput
- type GetQuestionsByTypesRandomOutput
- type GetUserIdByAddressInput
- type GetUserIdByAddressOutput
- type GetUserNFTsByUserIdAndAddressInput
- type GetUserNFTsByUserIdAndAddressOutput
- type GetUserNFTsInput
- type GetUserNFTsOutput
- type GetUserRecipesInput
- type GetUserRecipesOutput
- type GetUserTrackInput
- type GetUserTrackOutput
- type GetUserWeb3ProfileInput
- type GetUserWeb3ProfileOutput
- type HarvestInput
- type HarvestOutput
- type Int32
- type Integer
- type LandData
- type LandServiceAction
- type LandUsingSkillInput
- type LandUsingSkillOutput
- type LearnUserRecipesInput
- type LearnUserRecipesOutput
- type MELDExchange2Ditamin
- type MELDFutureExchangeRateChange
- type MELDFutureMint
- type MELDFutureRelease
- type MarketplaceTrade
- type MelandAttribute
- type MelandServiceAction
- type MergeByRecipeInput
- type MergeByRecipeOutput
- type MintBatteryInput
- type MintBatteryOutput
- type MintNFTWithItemIdAndUserAddressInput
- type MintNFTWithItemIdAndUserAddressInputQuality
- type MintNFTWithItemIdAndUserAddressOutput
- type MintNFTWithItemIdInput
- type MintNFTWithItemIdInputQuality
- type MintNFTWithItemIdOutput
- type MintNFTWithMetadataInput
- type MintNFTWithMetadataOutput
- type MultiBatchBurnNFTInput
- type MultiBatchBurnNFTOutput
- type MultiBuildUpdateEvent
- type MultiGetPlayerInfoByUserIdInput
- type MultiGetPlayerInfoByUserIdOutput
- type MultiGetPlayerUsingNftsByUserIdInput
- type MultiGetPlayerUsingNftsByUserIdOutput
- type MultiLandDataUpdateEvent
- type MultiRecyclingEvent
- type MultiUpdateUserNFT
- type NFT
- type NFTAttribute
- type NFTMetadata
- type NFTPlaceableTimeout
- type NFTTraitCoreSkillId
- type NFTTraitPlaceableLands
- type NFTTraitQuality
- type NFTTraitRarity
- type NFTTraitSkillLevel
- type NFTTraitType
- type NFTTraitTypes
- type NFTTraitWearingPosition
- type PVPEndType
- type PVPMatchEnterInput
- type PVPMatchEnterOutput
- type PVPMatchLeaveInput
- type PVPMatchLeaveOutput
- type PVPPKSessionStatus
- type PVPPlayer
- type PVPRoomPreLeaveInput
- type PVPRoomPreLeaveOutput
- type PVPRoomReadyInput
- type PVPRoomReadyOutput
- type PVPServiceAction
- type PVPSubscriptionEvent
- type PVPType
- type PVPUserType
- type PageMeta
- type PkSessionAgainInput
- type PkSessionAgainOutput
- type PkSessionDoQuestionInput
- type PkSessionDoQuestionOutput
- type PkSessionLoadSuccessInput
- type PkSessionLoadSuccessOutput
- type PkSessionUITickInput
- type PkSessionUITickOutput
- type PlayerAvatar
- type PlayerDeath
- type PlayerInfo
- type PlayerItemSlot
- type PlayerKilled
- type PlayerReborn
- type PlayerRebornType
- type Prefetch
- type PvpHistory
- type PvpPlayerProfile
- type PvpPlayerRank
- type PvpSurrenderInput
- type PvpSurrenderOutput
- type Question
- type QuestionType
- type RecipeInfo
- type RecyclingInfo
- type RecyclingInput
- type RecyclingOutput
- type SceneDynamicServiceAction
- type SendMetaTxInput
- type SendMetaTxOutput
- type SendTxInput
- type SendTxOutput
- type Sex
- type Skill
- type SmapleNFT
- type StartServerInput
- type StartServerOutput
- type SubscriptionEvent
- type TemporaryToken
- type TemporaryTokenExtraInfo
- type UnloadEquipment
- type UpdateUpcomingUses
- type UpdateUserNFT
- type UpgradePlayerItemSlotsInput
- type UpgradePlayerItemSlotsOutput
- type UseConsumableInput
- type UseConsumableOutput
- type UseConsumabled
- type UseEquipment
- type UseLUAUSDInput
- type UseLUAUSDOutput
- type UseLUAUSDType
- type User
- type UserStakeAdd
- type UserStakeClaim
- type UserStakeExpire
- type UserStakeHarvest
- type UserType
- type UserUsingNft
- type UsingNFT
- type Web3ServiceAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EquipmentPosition ¶
func EquipmentPosition(traitType proto.NftTraitType) (position proto.AvatarPosition)
func GetConsumableData ¶
func GetConsumableData(traitData []*proto.NftTraitData) *proto.NFTConsumableInfo
func GetNftEntityAttributeDisType ¶
func GetNftEntityAttributeDisType(displayType string) proto.AttributeDisplayType
func GetNftEntityAttributes ¶
func GetNftEntityAttributes(nft NFT) []*proto.AttributeData
func GetNftMetaData ¶
func GetNftMetaData(nft NFT) *proto.NftMetadata
func GetNftTraitData ¶
func GetNftTraitData(nft NFT) []*proto.NftTraitData
func GetNftTraitType ¶
func GetNftTraitType(nft NFT) (traitType proto.NftTraitType)
func GetNftUseLevel ¶
func GetNftUseLevel(traitData []*proto.NftTraitData) (needLv int32)
func TileIdToXy ¶
func ToProtoLandData ¶
func ToProtoNftData ¶
Types ¶
type AppId ¶
type AppId string
const AppIdGameServiceMain AppId = "game-service-main"
const AppIdMelandService AppId = "meland-service"
const AppIdPvpService AppId = "pvp-service"
const AppIdSceneDynamicService AppId = "scene-dynamic-service"
const AppIdWeb3Service AppId = "web3-service"
func (*AppId) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type Auth ¶
type Auth struct { // AccessToken corresponds to the JSON schema field "accessToken". AccessToken string `json:"accessToken" yaml:"accessToken" mapstructure:"accessToken"` // UserType corresponds to the JSON schema field "userType". UserType *AuthUserType `json:"userType,omitempty" yaml:"userType,omitempty" mapstructure:"userType,omitempty"` }
func (*Auth) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type AuthUserType ¶
type AuthUserType string
const AuthUserTypeMANAGER AuthUserType = "MANAGER"
const AuthUserTypeSTUDENT AuthUserType = "STUDENT"
const AuthUserTypeTEACHER AuthUserType = "TEACHER"
func (*AuthUserType) UnmarshalJSON ¶
func (j *AuthUserType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BatchBurnNFTInput ¶
type BatchBurnNFTInput struct { // Amounts corresponds to the JSON schema field "amounts". Amounts []string `json:"amounts" yaml:"amounts" mapstructure:"amounts"` // NftIds corresponds to the JSON schema field "nftIds". NftIds []string `json:"nftIds" yaml:"nftIds" mapstructure:"nftIds"` // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*BatchBurnNFTInput) UnmarshalJSON ¶
func (j *BatchBurnNFTInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BatchBurnNFTOutput ¶
type BatchBurnNFTOutput map[string]interface{}
type BatchMintNFTWithItemIdInput ¶
type BatchMintNFTWithItemIdInput struct { // index和itemIds一一对应 // 所有数量 Amounts []int `json:"amounts" yaml:"amounts" mapstructure:"amounts"` // Async corresponds to the JSON schema field "async". Async bool `json:"async" yaml:"async" mapstructure:"async"` // 需要mint的所有的itemId ItemIds []string `json:"itemIds" yaml:"itemIds" mapstructure:"itemIds"` // 玩家所在的坐标landId, // 当mint场景是捡取掉落物时携带 LandId int `json:"landId" yaml:"landId" mapstructure:"landId"` // 所有的品质 // index和itemIds一一对应 QualityVals []string `json:"qualityVals,omitempty" yaml:"qualityVals,omitempty" mapstructure:"qualityVals,omitempty"` // 所有的品质 // index和itemIds一一对应 Qualitys []BatchMintNFTWithItemIdInputQualitysElem `json:"qualitys,omitempty" yaml:"qualitys,omitempty" mapstructure:"qualitys,omitempty"` // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*BatchMintNFTWithItemIdInput) UnmarshalJSON ¶
func (j *BatchMintNFTWithItemIdInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BatchMintNFTWithItemIdInputQualitysElem ¶
type BatchMintNFTWithItemIdInputQualitysElem string
const BatchMintNFTWithItemIdInputQualitysElemAdvanced BatchMintNFTWithItemIdInputQualitysElem = "Advanced"
const BatchMintNFTWithItemIdInputQualitysElemBasic BatchMintNFTWithItemIdInputQualitysElem = "Basic"
const BatchMintNFTWithItemIdInputQualitysElemEnhanced BatchMintNFTWithItemIdInputQualitysElem = "Enhanced"
const BatchMintNFTWithItemIdInputQualitysElemSuper BatchMintNFTWithItemIdInputQualitysElem = "Super"
const BatchMintNFTWithItemIdInputQualitysElemUltimate BatchMintNFTWithItemIdInputQualitysElem = "Ultimate"
func (*BatchMintNFTWithItemIdInputQualitysElem) UnmarshalJSON ¶
func (j *BatchMintNFTWithItemIdInputQualitysElem) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BatchMintNFTWithItemIdOutput ¶
type BatchMintNFTWithItemIdOutput struct { // TxId corresponds to the JSON schema field "txId". TxId string `json:"txId" yaml:"txId" mapstructure:"txId"` }
func (*BatchMintNFTWithItemIdOutput) UnmarshalJSON ¶
func (j *BatchMintNFTWithItemIdOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BuildData ¶
type BuildData struct { // 建造id BuildId int `json:"buildId" yaml:"buildId" mapstructure:"buildId"` // 下次可采集(偷取)的时间戳 单位秒 CollectionAt int `json:"collectionAt" yaml:"collectionAt" mapstructure:"collectionAt"` // 可采集(偷取)物品数量统计 CollectionItemCount int `json:"collectionItemCount" yaml:"collectionItemCount" mapstructure:"collectionItemCount"` // 采集开始时间点 CollectionStartAt int `json:"collectionStartAt" yaml:"collectionStartAt" mapstructure:"collectionStartAt"` // 电量过期时间 单位秒 ElectricEnd int `json:"electricEnd" yaml:"electricEnd" mapstructure:"electricEnd"` // 可以收集的时间 HarvestAt int `json:"harvestAt" yaml:"harvestAt" mapstructure:"harvestAt"` // 可收获的物品数量统计(没电时转移到采集) 单位秒 HarvestItemCount int `json:"harvestItemCount" yaml:"harvestItemCount" mapstructure:"harvestItemCount"` // 产出开始时间点. HarvestStartAt int `json:"harvestStartAt" yaml:"harvestStartAt" mapstructure:"harvestStartAt"` // LandIds corresponds to the JSON schema field "landIds". LandIds []int `json:"landIds" yaml:"landIds" mapstructure:"landIds"` // LandPlacementPowerZeroCooldownAt corresponds to the JSON schema field // "landPlacementPowerZeroCooldownAt". LandPlacementPowerZeroCooldownAt int `` /* 127-byte string literal not displayed */ // LandPlacementPowerZeroCooldownStartAt corresponds to the JSON schema field // "landPlacementPowerZeroCooldownStartAt". LandPlacementPowerZeroCooldownStartAt int `` /* 142-byte string literal not displayed */ // 地图id 为多地图准备 MapId int `json:"mapId" yaml:"mapId" mapstructure:"mapId"` // nftId NftId string `json:"nftId" yaml:"nftId" mapstructure:"nftId"` // 玩家id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*BuildData) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type BuildInput ¶
type BuildInput struct { // LandIds corresponds to the JSON schema field "landIds". LandIds []int `json:"landIds" yaml:"landIds" mapstructure:"landIds"` // 地图id 为多地图准备 MapId int `json:"mapId" yaml:"mapId" mapstructure:"mapId"` // nftId NftId string `json:"nftId" yaml:"nftId" mapstructure:"nftId"` // 玩家id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*BuildInput) UnmarshalJSON ¶
func (j *BuildInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BuildOutput ¶
type BuildOutput struct { // 建造物信息 BuildData *BuildData `json:"buildData,omitempty" yaml:"buildData,omitempty" mapstructure:"buildData,omitempty"` // 失败, 则返回失败原因, 否则返回空字符串 FailedReason string `json:"failedReason" yaml:"failedReason" mapstructure:"failedReason"` // 是否成功 Success bool `json:"success" yaml:"success" mapstructure:"success"` }
func (*BuildOutput) UnmarshalJSON ¶
func (j *BuildOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BurnDitaminInput ¶
type BurnDitaminInput struct { // 需要燃烧的ditamin数量 Amount string `json:"amount" yaml:"amount" mapstructure:"amount"` // 燃烧的原因 Source DitaminBurnSource `json:"source" yaml:"source" mapstructure:"source"` // 燃烧的hash id // 用来防止重复燃烧, 每次燃烧调用方需要生成一个txHash. 如果txHash重复, 则不会重复燃烧 TxHash string `json:"txHash" yaml:"txHash" mapstructure:"txHash"` // 需要燃烧的用户id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*BurnDitaminInput) UnmarshalJSON ¶
func (j *BurnDitaminInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BurnDitaminOutput ¶
type BurnDitaminOutput struct { // 是否燃烧成功 BurnSuccess bool `json:"burnSuccess" yaml:"burnSuccess" mapstructure:"burnSuccess"` // 如果燃烧失败, 则返回失败原因, 否则返回空字符串 FailedReason string `json:"failedReason" yaml:"failedReason" mapstructure:"failedReason"` }
func (*BurnDitaminOutput) UnmarshalJSON ¶
func (j *BurnDitaminOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BurnNFTInput ¶
type BurnNFTInput struct { // 丢弃的数量 Amount int `json:"amount" yaml:"amount" mapstructure:"amount"` // 丢弃的NFTId NftId string `json:"nftId" yaml:"nftId" mapstructure:"nftId"` // 用户id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*BurnNFTInput) UnmarshalJSON ¶
func (j *BurnNFTInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BurnNFTOutput ¶
type BurnNFTOutput struct { // 是否丢弃成功 Success bool `json:"success" yaml:"success" mapstructure:"success"` }
func (*BurnNFTOutput) UnmarshalJSON ¶
func (j *BurnNFTOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type CanBuildNFTInput ¶
type CanBuildNFTInput struct { // 实体存活时间,对第三方NFT有效, 单位(秒) AliveTimeSec int `json:"aliveTimeSec" yaml:"aliveTimeSec" mapstructure:"aliveTimeSec"` // NFT Id NftId string `json:"nftId" yaml:"nftId" mapstructure:"nftId"` // 归属用户id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*CanBuildNFTInput) UnmarshalJSON ¶
func (j *CanBuildNFTInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type CanBuildNFTOutput ¶
type CanBuildNFTOutput struct { // CanBuild corresponds to the JSON schema field "canBuild". CanBuild bool `json:"canBuild" yaml:"canBuild" mapstructure:"canBuild"` // NFT id NftId string `json:"nftId" yaml:"nftId" mapstructure:"nftId"` }
func (*CanBuildNFTOutput) UnmarshalJSON ¶
func (j *CanBuildNFTOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type ChargedInput ¶
type ChargedInput struct { // 建造id BuildId int `json:"buildId" yaml:"buildId" mapstructure:"buildId"` // 地图id 为多地图准备 MapId int `json:"mapId" yaml:"mapId" mapstructure:"mapId"` // 电池数量 Num int `json:"num" yaml:"num" mapstructure:"num"` // 玩家id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*ChargedInput) UnmarshalJSON ¶
func (j *ChargedInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type ChargedOutput ¶
type ChargedOutput struct { // 失败, 则返回失败原因, 否则返回空字符串 FailedReason string `json:"failedReason" yaml:"failedReason" mapstructure:"failedReason"` // 是否成功 Success bool `json:"success" yaml:"success" mapstructure:"success"` }
func (*ChargedOutput) UnmarshalJSON ¶
func (j *ChargedOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type CheckQuestionAnswerInput ¶
type CheckQuestionAnswerInput struct { // AnswerJSON corresponds to the JSON schema field "answerJSON". AnswerJSON string `json:"answerJSON" yaml:"answerJSON" mapstructure:"answerJSON"` // QuestionId corresponds to the JSON schema field "questionId". QuestionId string `json:"questionId" yaml:"questionId" mapstructure:"questionId"` }
func (*CheckQuestionAnswerInput) UnmarshalJSON ¶
func (j *CheckQuestionAnswerInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type CheckQuestionAnswerOutput ¶
type CheckQuestionAnswerOutput struct { // IsCorrect corresponds to the JSON schema field "isCorrect". IsCorrect bool `json:"isCorrect" yaml:"isCorrect" mapstructure:"isCorrect"` }
func (*CheckQuestionAnswerOutput) UnmarshalJSON ¶
func (j *CheckQuestionAnswerOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type CloseServer ¶
type CloseServer struct { // ServerAppId corresponds to the JSON schema field "serverAppId". ServerAppId string `json:"serverAppId" yaml:"serverAppId" mapstructure:"serverAppId"` }
func (*CloseServer) UnmarshalJSON ¶
func (j *CloseServer) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type CollectionInput ¶
type CollectionInput struct { // 建造Id BuildId int `json:"buildId" yaml:"buildId" mapstructure:"buildId"` // 地图id 为多地图准备 MapId int `json:"mapId" yaml:"mapId" mapstructure:"mapId"` // 玩家id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*CollectionInput) UnmarshalJSON ¶
func (j *CollectionInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type CollectionOutput ¶
type CollectionOutput struct { // 失败, 则返回失败原因, 否则返回空字符串 FailedReason string `json:"failedReason" yaml:"failedReason" mapstructure:"failedReason"` // 是否成功 Success bool `json:"success" yaml:"success" mapstructure:"success"` }
func (*CollectionOutput) UnmarshalJSON ¶
func (j *CollectionOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type CreatePVPRoomInput ¶
type CreatePVPRoomInput map[string]interface{}
type CreatePVPRoomOutput ¶
type CreatePVPRoomOutput struct { // RoomId corresponds to the JSON schema field "roomId". RoomId string `json:"roomId" yaml:"roomId" mapstructure:"roomId"` }
func (*CreatePVPRoomOutput) UnmarshalJSON ¶
func (j *CreatePVPRoomOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type DeductUserExpInput ¶
type DeductUserExpInput struct { // DeductExp corresponds to the JSON schema field "deductExp". DeductExp int `json:"deductExp" yaml:"deductExp" mapstructure:"deductExp"` // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*DeductUserExpInput) UnmarshalJSON ¶
func (j *DeductUserExpInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type DeductUserExpOutput ¶
type DeductUserExpOutput struct { // 是否扣除成功 DeductSuccess bool `json:"deductSuccess" yaml:"deductSuccess" mapstructure:"deductSuccess"` // 如果扣除失败, 则返回失败原因, 否则返回空字符串 FailedReason string `json:"failedReason" yaml:"failedReason" mapstructure:"failedReason"` }
func (*DeductUserExpOutput) UnmarshalJSON ¶
func (j *DeductUserExpOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type DitaminBurn ¶
type DitaminBurn struct { // ditamin数量 DitaminAmount string `json:"ditaminAmount" yaml:"ditaminAmount" mapstructure:"ditaminAmount"` // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // 生产源 Source DitaminBurnSource `json:"source" yaml:"source" mapstructure:"source"` // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*DitaminBurn) UnmarshalJSON ¶
func (j *DitaminBurn) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type DitaminBurnSource ¶
type DitaminBurnSource string
const DitaminBurnSourceBuild3DrNFT DitaminBurnSource = "build3drNFT"
const DitaminBurnSourceBuildNFT DitaminBurnSource = "buildNFT"
const DitaminBurnSourceBuyEnergy DitaminBurnSource = "buyEnergy"
const DitaminBurnSourceCraft DitaminBurnSource = "craft"
const DitaminBurnSourceExchange DitaminBurnSource = "exchange"
func (*DitaminBurnSource) UnmarshalJSON ¶
func (j *DitaminBurnSource) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type DitaminProduce ¶
type DitaminProduce struct { // ditamin数量 DitaminAmount string `json:"ditaminAmount" yaml:"ditaminAmount" mapstructure:"ditaminAmount"` // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // 生产源 Source DitaminProduceSource `json:"source" yaml:"source" mapstructure:"source"` // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*DitaminProduce) UnmarshalJSON ¶
func (j *DitaminProduce) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type DitaminProduceSource ¶
type DitaminProduceSource string
const DitaminProduceSourceAttackFinlish DitaminProduceSource = "attackFinlish"
const DitaminProduceSourceDeposit DitaminProduceSource = "deposit"
const DitaminProduceSourceHarvest DitaminProduceSource = "harvest"
func (*DitaminProduceSource) UnmarshalJSON ¶
func (j *DitaminProduceSource) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type FinishQuestion ¶
type FinishQuestion struct { // DiffcultyChange corresponds to the JSON schema field "diffcultyChange". DiffcultyChange float64 `json:"diffcultyChange" yaml:"diffcultyChange" mapstructure:"diffcultyChange"` // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // Level corresponds to the JSON schema field "level". Level string `json:"level" yaml:"level" mapstructure:"level"` // QuestionId corresponds to the JSON schema field "questionId". QuestionId string `json:"questionId" yaml:"questionId" mapstructure:"questionId"` // Result corresponds to the JSON schema field "result". Result string `json:"result" yaml:"result" mapstructure:"result"` // Type corresponds to the JSON schema field "type". Type string `json:"type" yaml:"type" mapstructure:"type"` // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*FinishQuestion) UnmarshalJSON ¶
func (j *FinishQuestion) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type ForgetUserRecipesInput ¶
type ForgetUserRecipesInput struct { // RecipeIds corresponds to the JSON schema field "recipeIds". RecipeIds []string `json:"recipeIds" yaml:"recipeIds" mapstructure:"recipeIds"` // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*ForgetUserRecipesInput) UnmarshalJSON ¶
func (j *ForgetUserRecipesInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type ForgetUserRecipesOutput ¶
type ForgetUserRecipesOutput map[string]interface{}
type GameDataServiceAction ¶
type GameDataServiceAction string
const GameDataServiceActionDeductUserExp GameDataServiceAction = "DeductUserExp"
const GameDataServiceActionGetPlayerInfoByUserId GameDataServiceAction = "GetPlayerInfoByUserId"
const GameDataServiceActionGetPlayerItemSlots GameDataServiceAction = "GetPlayerItemSlots"
const GameDataServiceActionGetPlayerUsingNftsByUserId GameDataServiceAction = "GetPlayerUsingNftsByUserId"
const GameDataServiceActionLandUsingSkill GameDataServiceAction = "LandUsingSkill"
const GameDataServiceActionMultiGetPlayerInfoByUserId GameDataServiceAction = "MultiGetPlayerInfoByUserId"
const GameDataServiceActionMultiGetPlayerUsingNftsByUserId GameDataServiceAction = "MultiGetPlayerUsingNftsByUserId"
const GameDataServiceActionUpgradePlayerItemSlots GameDataServiceAction = "UpgradePlayerItemSlots"
func (*GameDataServiceAction) UnmarshalJSON ¶
func (j *GameDataServiceAction) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetAllBuildDataInput ¶
type GetAllBuildDataInput struct { // 地图id 为多地图准备 MapId int `json:"mapId" yaml:"mapId" mapstructure:"mapId"` }
func (*GetAllBuildDataInput) UnmarshalJSON ¶
func (j *GetAllBuildDataInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetAllBuildDataOutput ¶
type GetAllBuildDataOutput struct { // 全量建造物数据 AllBuild []BuildData `json:"allBuild,omitempty" yaml:"allBuild,omitempty" mapstructure:"allBuild,omitempty"` // 失败, 则返回失败原因, 否则返回空字符串 FailedReason string `json:"failedReason" yaml:"failedReason" mapstructure:"failedReason"` // 是否成功 Success bool `json:"success" yaml:"success" mapstructure:"success"` }
func (*GetAllBuildDataOutput) UnmarshalJSON ¶
func (j *GetAllBuildDataOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetAllLandDataInput ¶
type GetAllLandDataInput struct { // 地图id 为多地图准备 MapId int `json:"mapId" yaml:"mapId" mapstructure:"mapId"` }
func (*GetAllLandDataInput) UnmarshalJSON ¶
func (j *GetAllLandDataInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetAllLandDataOutput ¶
type GetAllLandDataOutput struct { // 全量地格数据 AllLandData []LandData `json:"allLandData,omitempty" yaml:"allLandData,omitempty" mapstructure:"allLandData,omitempty"` // 失败, 则返回失败原因, 否则返回空字符串 FailedReason string `json:"failedReason" yaml:"failedReason" mapstructure:"failedReason"` // 是否成功 Success bool `json:"success" yaml:"success" mapstructure:"success"` }
func (*GetAllLandDataOutput) UnmarshalJSON ¶
func (j *GetAllLandDataOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetCurrentPkSessionIdInput ¶
type GetCurrentPkSessionIdInput struct { // Player corresponds to the JSON schema field "player". Player PVPPlayer `json:"player" yaml:"player" mapstructure:"player"` }
func (*GetCurrentPkSessionIdInput) UnmarshalJSON ¶
func (j *GetCurrentPkSessionIdInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetCurrentPkSessionIdOutput ¶
type GetCurrentPkSessionIdOutput struct { // PkSessionId corresponds to the JSON schema field "pkSessionId". PkSessionId string `json:"pkSessionId" yaml:"pkSessionId" mapstructure:"pkSessionId"` }
func (*GetCurrentPkSessionIdOutput) UnmarshalJSON ¶
func (j *GetCurrentPkSessionIdOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetPlayerInfoByUserIdInput ¶
type GetPlayerInfoByUserIdInput struct { // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*GetPlayerInfoByUserIdInput) UnmarshalJSON ¶
func (j *GetPlayerInfoByUserIdInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetPlayerInfoByUserIdOutput ¶
type GetPlayerInfoByUserIdOutput struct { // PlayerData corresponds to the JSON schema field "playerData". PlayerData PlayerInfo `json:"playerData" yaml:"playerData" mapstructure:"playerData"` }
func (*GetPlayerInfoByUserIdOutput) UnmarshalJSON ¶
func (j *GetPlayerInfoByUserIdOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetPlayerItemSlotsInput ¶
type GetPlayerItemSlotsInput struct { // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*GetPlayerItemSlotsInput) UnmarshalJSON ¶
func (j *GetPlayerItemSlotsInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetPlayerItemSlotsOutput ¶
type GetPlayerItemSlotsOutput struct { // ItemSlots corresponds to the JSON schema field "itemSlots". ItemSlots []PlayerItemSlot `json:"itemSlots" yaml:"itemSlots" mapstructure:"itemSlots"` // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*GetPlayerItemSlotsOutput) UnmarshalJSON ¶
func (j *GetPlayerItemSlotsOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetPlayerPvpProfileInput ¶
type GetPlayerPvpProfileInput struct { // PlayerId corresponds to the JSON schema field "playerId". PlayerId string `json:"playerId" yaml:"playerId" mapstructure:"playerId"` }
func (*GetPlayerPvpProfileInput) UnmarshalJSON ¶
func (j *GetPlayerPvpProfileInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetPlayerPvpProfileOutput ¶
type GetPlayerPvpProfileOutput struct { // Profile corresponds to the JSON schema field "profile". Profile PvpPlayerProfile `json:"profile" yaml:"profile" mapstructure:"profile"` }
func (*GetPlayerPvpProfileOutput) UnmarshalJSON ¶
func (j *GetPlayerPvpProfileOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetPlayerPvpRankInput ¶
type GetPlayerPvpRankInput struct { // PlayerId corresponds to the JSON schema field "playerId". PlayerId string `json:"playerId" yaml:"playerId" mapstructure:"playerId"` }
func (*GetPlayerPvpRankInput) UnmarshalJSON ¶
func (j *GetPlayerPvpRankInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetPlayerPvpRankOutput ¶
type GetPlayerPvpRankOutput struct { // RankList corresponds to the JSON schema field "rankList". RankList []PvpPlayerRank `json:"rankList" yaml:"rankList" mapstructure:"rankList"` // SelfRank corresponds to the JSON schema field "selfRank". SelfRank PvpPlayerRank `json:"selfRank" yaml:"selfRank" mapstructure:"selfRank"` }
func (*GetPlayerPvpRankOutput) UnmarshalJSON ¶
func (j *GetPlayerPvpRankOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetPlayerUsingNftsByUserIdInput ¶
type GetPlayerUsingNftsByUserIdInput struct { // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*GetPlayerUsingNftsByUserIdInput) UnmarshalJSON ¶
func (j *GetPlayerUsingNftsByUserIdInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetPlayerUsingNftsByUserIdOutput ¶
type GetPlayerUsingNftsByUserIdOutput struct { // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` // UsingNfts corresponds to the JSON schema field "usingNfts". UsingNfts []UsingNFT `json:"usingNfts" yaml:"usingNfts" mapstructure:"usingNfts"` }
func (*GetPlayerUsingNftsByUserIdOutput) UnmarshalJSON ¶
func (j *GetPlayerUsingNftsByUserIdOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetPvpHistoryInput ¶
type GetPvpHistoryInput struct { // PlayerId corresponds to the JSON schema field "playerId". PlayerId string `json:"playerId" yaml:"playerId" mapstructure:"playerId"` }
func (*GetPvpHistoryInput) UnmarshalJSON ¶
func (j *GetPvpHistoryInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetPvpHistoryOutput ¶
type GetPvpHistoryOutput struct { // HistoryList corresponds to the JSON schema field "historyList". HistoryList []PvpHistory `json:"historyList" yaml:"historyList" mapstructure:"historyList"` }
func (*GetPvpHistoryOutput) UnmarshalJSON ¶
func (j *GetPvpHistoryOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetQuestionResourcesByTypesInput ¶
type GetQuestionResourcesByTypesInput struct { // Types corresponds to the JSON schema field "types". Types []string `json:"types" yaml:"types" mapstructure:"types"` }
func (*GetQuestionResourcesByTypesInput) UnmarshalJSON ¶
func (j *GetQuestionResourcesByTypesInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetQuestionResourcesByTypesOutput ¶
type GetQuestionResourcesByTypesOutput struct { // Prefetchs corresponds to the JSON schema field "prefetchs". Prefetchs []Prefetch `json:"prefetchs" yaml:"prefetchs" mapstructure:"prefetchs"` }
func (*GetQuestionResourcesByTypesOutput) UnmarshalJSON ¶
func (j *GetQuestionResourcesByTypesOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetQuestionsByTypesRandomInput ¶
type GetQuestionsByTypesRandomInput struct { // Limit corresponds to the JSON schema field "limit". Limit int `json:"limit" yaml:"limit" mapstructure:"limit"` // Types corresponds to the JSON schema field "types". Types []string `json:"types" yaml:"types" mapstructure:"types"` }
func (*GetQuestionsByTypesRandomInput) UnmarshalJSON ¶
func (j *GetQuestionsByTypesRandomInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetQuestionsByTypesRandomOutput ¶
type GetQuestionsByTypesRandomOutput struct { // Questions corresponds to the JSON schema field "questions". Questions []Question `json:"questions" yaml:"questions" mapstructure:"questions"` }
func (*GetQuestionsByTypesRandomOutput) UnmarshalJSON ¶
func (j *GetQuestionsByTypesRandomOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetUserIdByAddressInput ¶
type GetUserIdByAddressInput struct { // BlockchainAddress corresponds to the JSON schema field "blockchainAddress". BlockchainAddress string `json:"blockchainAddress" yaml:"blockchainAddress" mapstructure:"blockchainAddress"` }
func (*GetUserIdByAddressInput) UnmarshalJSON ¶
func (j *GetUserIdByAddressInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetUserIdByAddressOutput ¶
type GetUserIdByAddressOutput struct { // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*GetUserIdByAddressOutput) UnmarshalJSON ¶
func (j *GetUserIdByAddressOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetUserNFTsByUserIdAndAddressInput ¶
type GetUserNFTsByUserIdAndAddressInput struct { // 用户钱包地址 BlockchainAddress string `json:"blockchainAddress" yaml:"blockchainAddress" mapstructure:"blockchainAddress"` // 用户id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*GetUserNFTsByUserIdAndAddressInput) UnmarshalJSON ¶
func (j *GetUserNFTsByUserIdAndAddressInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetUserNFTsByUserIdAndAddressOutput ¶
type GetUserNFTsByUserIdAndAddressOutput struct { // Nfts corresponds to the JSON schema field "nfts". Nfts []NFT `json:"nfts" yaml:"nfts" mapstructure:"nfts"` }
func (*GetUserNFTsByUserIdAndAddressOutput) UnmarshalJSON ¶
func (j *GetUserNFTsByUserIdAndAddressOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetUserNFTsInput ¶
type GetUserNFTsInput struct { // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*GetUserNFTsInput) UnmarshalJSON ¶
func (j *GetUserNFTsInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetUserNFTsOutput ¶
type GetUserNFTsOutput struct { // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // user all nfts Nfts []NFT `json:"nfts" yaml:"nfts" mapstructure:"nfts"` // NFT放置过期时间表 PlaceableTimeouts []NFTPlaceableTimeout `json:"placeableTimeouts" yaml:"placeableTimeouts" mapstructure:"placeableTimeouts"` }
func (*GetUserNFTsOutput) UnmarshalJSON ¶
func (j *GetUserNFTsOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetUserRecipesInput ¶
type GetUserRecipesInput struct { // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*GetUserRecipesInput) UnmarshalJSON ¶
func (j *GetUserRecipesInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetUserRecipesOutput ¶
type GetUserRecipesOutput struct { // RecipeIds corresponds to the JSON schema field "recipeIds". RecipeIds []string `json:"recipeIds" yaml:"recipeIds" mapstructure:"recipeIds"` }
func (*GetUserRecipesOutput) UnmarshalJSON ¶
func (j *GetUserRecipesOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetUserTrackInput ¶
type GetUserTrackInput struct { // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*GetUserTrackInput) UnmarshalJSON ¶
func (j *GetUserTrackInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetUserTrackOutput ¶
type GetUserTrackOutput struct { // DitaminAmount corresponds to the JSON schema field "ditamin_amount". DitaminAmount int `json:"ditamin_amount" yaml:"ditamin_amount" mapstructure:"ditamin_amount"` // OccupiedLandNum corresponds to the JSON schema field "occupied_land_num". OccupiedLandNum int `json:"occupied_land_num" yaml:"occupied_land_num" mapstructure:"occupied_land_num"` // StakeVipname corresponds to the JSON schema field "stake_vipname". StakeVipname string `json:"stake_vipname" yaml:"stake_vipname" mapstructure:"stake_vipname"` // TicketLandNum corresponds to the JSON schema field "ticket_land_num". TicketLandNum int `json:"ticket_land_num" yaml:"ticket_land_num" mapstructure:"ticket_land_num"` // VipLandNum corresponds to the JSON schema field "vip_land_num". VipLandNum int `json:"vip_land_num" yaml:"vip_land_num" mapstructure:"vip_land_num"` }
func (*GetUserTrackOutput) UnmarshalJSON ¶
func (j *GetUserTrackOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetUserWeb3ProfileInput ¶
type GetUserWeb3ProfileInput struct { // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*GetUserWeb3ProfileInput) UnmarshalJSON ¶
func (j *GetUserWeb3ProfileInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GetUserWeb3ProfileOutput ¶
type GetUserWeb3ProfileOutput struct { // BlockchainAddress corresponds to the JSON schema field "blockchainAddress". BlockchainAddress string `json:"blockchainAddress" yaml:"blockchainAddress" mapstructure:"blockchainAddress"` }
func (*GetUserWeb3ProfileOutput) UnmarshalJSON ¶
func (j *GetUserWeb3ProfileOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type HarvestInput ¶
type HarvestInput struct { // 建造id BuildId int `json:"buildId" yaml:"buildId" mapstructure:"buildId"` // 地图id 为多地图准备 MapId int `json:"mapId" yaml:"mapId" mapstructure:"mapId"` // 玩家id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*HarvestInput) UnmarshalJSON ¶
func (j *HarvestInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type HarvestOutput ¶
type HarvestOutput struct { // 失败, 则返回失败原因, 否则返回空字符串 FailedReason string `json:"failedReason" yaml:"failedReason" mapstructure:"failedReason"` // 是否成功 Success bool `json:"success" yaml:"success" mapstructure:"success"` }
func (*HarvestOutput) UnmarshalJSON ¶
func (j *HarvestOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type LandData ¶
type LandData struct { // 地格id地图唯一 Id int `json:"id" yaml:"id" mapstructure:"id"` // 地图id 为多地图准备 MapId int `json:"mapId" yaml:"mapId" mapstructure:"mapId"` // 占领时间 单位秒 OccupyAt int `json:"occupyAt" yaml:"occupyAt" mapstructure:"occupyAt"` // owner userId OwnerId string `json:"ownerId" yaml:"ownerId" mapstructure:"ownerId"` // 占领过期时间 单位秒 // 当地块上存在有电量建筑物时, // 该时间戳无效 || 在充电时更新该时间戳 TimeoutAt int `json:"timeoutAt" yaml:"timeoutAt" mapstructure:"timeoutAt"` // 地格坐标 X float64 `json:"x" yaml:"x" mapstructure:"x"` // Y corresponds to the JSON schema field "y". Y float64 `json:"y" yaml:"y" mapstructure:"y"` // Z corresponds to the JSON schema field "z". Z float64 `json:"z" yaml:"z" mapstructure:"z"` }
地格数据结构
func (*LandData) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type LandServiceAction ¶
type LandServiceAction string
const LandServiceActionBuild LandServiceAction = "Build"
const LandServiceActionCharged LandServiceAction = "Charged"
const LandServiceActionCollection LandServiceAction = "Collection"
const LandServiceActionGetAllBuildData LandServiceAction = "GetAllBuildData"
const LandServiceActionGetAllLandData LandServiceAction = "GetAllLandData"
const LandServiceActionHarvest LandServiceAction = "Harvest"
const LandServiceActionMintBattery LandServiceAction = "MintBattery"
const LandServiceActionRecycling LandServiceAction = "Recycling"
func (*LandServiceAction) UnmarshalJSON ¶
func (j *LandServiceAction) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type LandUsingSkillInput ¶
type LandUsingSkillInput struct { // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // 地格ID TileId int `json:"tileId" yaml:"tileId" mapstructure:"tileId"` // 攻占者ID UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
攻占地格 请求地格中产生效果的skill
func (*LandUsingSkillInput) UnmarshalJSON ¶
func (j *LandUsingSkillInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type LandUsingSkillOutput ¶
type LandUsingSkillOutput struct { // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // Skill List SkillList []Skill `json:"skillList" yaml:"skillList" mapstructure:"skillList"` // 地格ID TileId int `json:"tileId" yaml:"tileId" mapstructure:"tileId"` // 攻占者ID UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
攻占地格 请求地格skill返回
func (*LandUsingSkillOutput) UnmarshalJSON ¶
func (j *LandUsingSkillOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type LearnUserRecipesInput ¶
type LearnUserRecipesInput struct { // RecipeIds corresponds to the JSON schema field "recipeIds". RecipeIds []string `json:"recipeIds" yaml:"recipeIds" mapstructure:"recipeIds"` // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*LearnUserRecipesInput) UnmarshalJSON ¶
func (j *LearnUserRecipesInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type LearnUserRecipesOutput ¶
type LearnUserRecipesOutput map[string]interface{}
type MELDExchange2Ditamin ¶
type MELDExchange2Ditamin struct { // AmountOfMELD corresponds to the JSON schema field "amountOfMELD". AmountOfMELD string `json:"amountOfMELD" yaml:"amountOfMELD" mapstructure:"amountOfMELD"` // DepositId corresponds to the JSON schema field "depositId". DepositId string `json:"depositId" yaml:"depositId" mapstructure:"depositId"` // DitaminAmount corresponds to the JSON schema field "ditaminAmount". DitaminAmount string `json:"ditaminAmount" yaml:"ditaminAmount" mapstructure:"ditaminAmount"` // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // UserBlockchainAddress corresponds to the JSON schema field // "userBlockchainAddress". UserBlockchainAddress string `json:"userBlockchainAddress" yaml:"userBlockchainAddress" mapstructure:"userBlockchainAddress"` }
func (*MELDExchange2Ditamin) UnmarshalJSON ¶
func (j *MELDExchange2Ditamin) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MELDFutureExchangeRateChange ¶
type MELDFutureExchangeRateChange struct { // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // ExchangeRate corresponds to the JSON schema field "exchangeRate". ExchangeRate string `json:"exchangeRate" yaml:"exchangeRate" mapstructure:"exchangeRate"` }
func (*MELDFutureExchangeRateChange) UnmarshalJSON ¶
func (j *MELDFutureExchangeRateChange) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MELDFutureMint ¶
type MELDFutureMint struct { // 花费多少ditamin DitaminAmount string `json:"ditaminAmount" yaml:"ditaminAmount" mapstructure:"ditaminAmount"` // 期货价值余额 FutureAmount string `json:"futureAmount" yaml:"futureAmount" mapstructure:"futureAmount"` // MfId corresponds to the JSON schema field "mfId". MfId string `json:"mfId" yaml:"mfId" mapstructure:"mfId"` // 获得的用户钱包地址 UserBlockchainAddress string `json:"userBlockchainAddress" yaml:"userBlockchainAddress" mapstructure:"userBlockchainAddress"` }
func (*MELDFutureMint) UnmarshalJSON ¶
func (j *MELDFutureMint) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MELDFutureRelease ¶
type MELDFutureRelease struct { // AmountOfMELD corresponds to the JSON schema field "amountOfMELD". AmountOfMELD string `json:"amountOfMELD" yaml:"amountOfMELD" mapstructure:"amountOfMELD"` // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // MfId corresponds to the JSON schema field "mfId". MfId string `json:"mfId" yaml:"mfId" mapstructure:"mfId"` // UserBlockchainAddress corresponds to the JSON schema field // "userBlockchainAddress". UserBlockchainAddress string `json:"userBlockchainAddress" yaml:"userBlockchainAddress" mapstructure:"userBlockchainAddress"` }
func (*MELDFutureRelease) UnmarshalJSON ¶
func (j *MELDFutureRelease) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MarketplaceTrade ¶
type MarketplaceTrade struct { // BuyerBlockchainAddress corresponds to the JSON schema field // "buyerBlockchainAddress". BuyerBlockchainAddress string `json:"buyerBlockchainAddress" yaml:"buyerBlockchainAddress" mapstructure:"buyerBlockchainAddress"` // ChainName corresponds to the JSON schema field "chainName". ChainName string `json:"chainName" yaml:"chainName" mapstructure:"chainName"` // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // Nft corresponds to the JSON schema field "nft". Nft NFT `json:"nft" yaml:"nft" mapstructure:"nft"` // SellerBlockchainAddress corresponds to the JSON schema field // "sellerBlockchainAddress". SellerBlockchainAddress string `json:"sellerBlockchainAddress" yaml:"sellerBlockchainAddress" mapstructure:"sellerBlockchainAddress"` // TokenAmount corresponds to the JSON schema field "tokenAmount". TokenAmount string `json:"tokenAmount" yaml:"tokenAmount" mapstructure:"tokenAmount"` // TokenType corresponds to the JSON schema field "tokenType". TokenType string `json:"tokenType" yaml:"tokenType" mapstructure:"tokenType"` // Txn corresponds to the JSON schema field "txn". Txn string `json:"txn" yaml:"txn" mapstructure:"txn"` }
func (*MarketplaceTrade) UnmarshalJSON ¶
func (j *MarketplaceTrade) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MelandAttribute ¶
type MelandAttribute struct { // TraitType corresponds to the JSON schema field "trait_type". TraitType string `json:"trait_type" yaml:"trait_type" mapstructure:"trait_type"` // Value corresponds to the JSON schema field "value". Value string `json:"value" yaml:"value" mapstructure:"value"` }
有一些配置表格的数据不希望显示在opensea中, 但是为了方便统一解析。 生成到这个表格中.
func (*MelandAttribute) UnmarshalJSON ¶
func (j *MelandAttribute) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MelandServiceAction ¶
type MelandServiceAction string
const MelandServiceActionBurnDitamin MelandServiceAction = "BurnDitamin"
const MelandServiceActionCanBuildNFT MelandServiceAction = "CanBuildNFT"
const MelandServiceActionCheckQuestionAnswer MelandServiceAction = "CheckQuestionAnswer"
const MelandServiceActionGetInitLandAttributions MelandServiceAction = "GetInitLandAttributions"
const MelandServiceActionGetQuestionResourcesByTypes MelandServiceAction = "GetQuestionResourcesByTypes"
const MelandServiceActionGetQuestionsByTypesRandom MelandServiceAction = "GetQuestionsByTypesRandom"
const MelandServiceActionGetUserIdByAddress MelandServiceAction = "GetUserIdByAddress"
const MelandServiceActionGetUserNFTs MelandServiceAction = "GetUserNFTs"
const MelandServiceActionGetUserTrack MelandServiceAction = "GetUserTrack"
const MelandServiceActionGetUserWeb3Profile MelandServiceAction = "GetUserWeb3Profile"
const MelandServiceActionSendMetaTx MelandServiceAction = "SendMetaTx"
const MelandServiceActionSendTx MelandServiceAction = "SendTx"
func (*MelandServiceAction) UnmarshalJSON ¶
func (j *MelandServiceAction) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MergeByRecipeInput ¶
type MergeByRecipeInput struct { // 合成数量 Amount int `json:"amount" yaml:"amount" mapstructure:"amount"` // 图鉴id RecipeId string `json:"recipeId" yaml:"recipeId" mapstructure:"recipeId"` // 合成的用户 UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*MergeByRecipeInput) UnmarshalJSON ¶
func (j *MergeByRecipeInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MergeByRecipeOutput ¶
type MergeByRecipeOutput map[string]interface{}
type MintBatteryInput ¶
type MintBatteryInput struct { // 赠送数量, 由前端传过来, 防止后端配表跟前端不一致时, 出现问题 GiftNum int `json:"giftNum" yaml:"giftNum" mapstructure:"giftNum"` // mint 数量 Num int `json:"num" yaml:"num" mapstructure:"num"` // 用户数量 UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*MintBatteryInput) UnmarshalJSON ¶
func (j *MintBatteryInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MintBatteryOutput ¶
type MintBatteryOutput struct { // 失败, 则返回失败原因, 否则返回空字符串 FailedReason string `json:"failedReason" yaml:"failedReason" mapstructure:"failedReason"` // 是否成功 Success bool `json:"success" yaml:"success" mapstructure:"success"` }
func (*MintBatteryOutput) UnmarshalJSON ¶
func (j *MintBatteryOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MintNFTWithItemIdAndUserAddressInput ¶
type MintNFTWithItemIdAndUserAddressInput struct { // Amount corresponds to the JSON schema field "amount". Amount int `json:"amount" yaml:"amount" mapstructure:"amount"` // Async corresponds to the JSON schema field "async". Async bool `json:"async" yaml:"async" mapstructure:"async"` // ItemId corresponds to the JSON schema field "itemId". ItemId string `json:"itemId" yaml:"itemId" mapstructure:"itemId"` // Quality corresponds to the JSON schema field "quality". Quality *MintNFTWithItemIdAndUserAddressInputQuality `json:"quality,omitempty" yaml:"quality,omitempty" mapstructure:"quality,omitempty"` // QualityVal corresponds to the JSON schema field "qualityVal". QualityVal *string `json:"qualityVal,omitempty" yaml:"qualityVal,omitempty" mapstructure:"qualityVal,omitempty"` // UserAddress corresponds to the JSON schema field "userAddress". UserAddress string `json:"userAddress" yaml:"userAddress" mapstructure:"userAddress"` }
func (*MintNFTWithItemIdAndUserAddressInput) UnmarshalJSON ¶
func (j *MintNFTWithItemIdAndUserAddressInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MintNFTWithItemIdAndUserAddressInputQuality ¶
type MintNFTWithItemIdAndUserAddressInputQuality string
const MintNFTWithItemIdAndUserAddressInputQualityAdvanced MintNFTWithItemIdAndUserAddressInputQuality = "Advanced"
const MintNFTWithItemIdAndUserAddressInputQualityBasic MintNFTWithItemIdAndUserAddressInputQuality = "Basic"
const MintNFTWithItemIdAndUserAddressInputQualityEnhanced MintNFTWithItemIdAndUserAddressInputQuality = "Enhanced"
const MintNFTWithItemIdAndUserAddressInputQualitySuper MintNFTWithItemIdAndUserAddressInputQuality = "Super"
const MintNFTWithItemIdAndUserAddressInputQualityUltimate MintNFTWithItemIdAndUserAddressInputQuality = "Ultimate"
func (*MintNFTWithItemIdAndUserAddressInputQuality) UnmarshalJSON ¶
func (j *MintNFTWithItemIdAndUserAddressInputQuality) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MintNFTWithItemIdAndUserAddressOutput ¶
type MintNFTWithItemIdAndUserAddressOutput struct { // TxId corresponds to the JSON schema field "txId". TxId string `json:"txId" yaml:"txId" mapstructure:"txId"` }
func (*MintNFTWithItemIdAndUserAddressOutput) UnmarshalJSON ¶
func (j *MintNFTWithItemIdAndUserAddressOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MintNFTWithItemIdInput ¶
type MintNFTWithItemIdInput struct { // Amount corresponds to the JSON schema field "amount". Amount int `json:"amount" yaml:"amount" mapstructure:"amount"` // Async corresponds to the JSON schema field "async". Async bool `json:"async" yaml:"async" mapstructure:"async"` // ItemId corresponds to the JSON schema field "itemId". ItemId string `json:"itemId" yaml:"itemId" mapstructure:"itemId"` // 玩家所在的坐标landId, // 当mint场景是捡取掉落物时携带 LandId int `json:"landId" yaml:"landId" mapstructure:"landId"` // Quality corresponds to the JSON schema field "quality". Quality *MintNFTWithItemIdInputQuality `json:"quality,omitempty" yaml:"quality,omitempty" mapstructure:"quality,omitempty"` // QualityVal corresponds to the JSON schema field "qualityVal". QualityVal *string `json:"qualityVal,omitempty" yaml:"qualityVal,omitempty" mapstructure:"qualityVal,omitempty"` // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*MintNFTWithItemIdInput) UnmarshalJSON ¶
func (j *MintNFTWithItemIdInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MintNFTWithItemIdInputQuality ¶
type MintNFTWithItemIdInputQuality string
const MintNFTWithItemIdInputQualityAdvanced MintNFTWithItemIdInputQuality = "Advanced"
const MintNFTWithItemIdInputQualityBasic MintNFTWithItemIdInputQuality = "Basic"
const MintNFTWithItemIdInputQualityEnhanced MintNFTWithItemIdInputQuality = "Enhanced"
const MintNFTWithItemIdInputQualitySuper MintNFTWithItemIdInputQuality = "Super"
const MintNFTWithItemIdInputQualityUltimate MintNFTWithItemIdInputQuality = "Ultimate"
func (*MintNFTWithItemIdInputQuality) UnmarshalJSON ¶
func (j *MintNFTWithItemIdInputQuality) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MintNFTWithItemIdOutput ¶
type MintNFTWithItemIdOutput struct { // TxId corresponds to the JSON schema field "txId". TxId string `json:"txId" yaml:"txId" mapstructure:"txId"` }
func (*MintNFTWithItemIdOutput) UnmarshalJSON ¶
func (j *MintNFTWithItemIdOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MintNFTWithMetadataInput ¶
type MintNFTWithMetadataInput struct { // Amount corresponds to the JSON schema field "amount". Amount int `json:"amount" yaml:"amount" mapstructure:"amount"` // Async corresponds to the JSON schema field "async". Async bool `json:"async" yaml:"async" mapstructure:"async"` // ItemId corresponds to the JSON schema field "itemId". ItemId string `json:"itemId" yaml:"itemId" mapstructure:"itemId"` // Metadata corresponds to the JSON schema field "metadata". Metadata NFTMetadata `json:"metadata" yaml:"metadata" mapstructure:"metadata"` // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*MintNFTWithMetadataInput) UnmarshalJSON ¶
func (j *MintNFTWithMetadataInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MintNFTWithMetadataOutput ¶
type MintNFTWithMetadataOutput struct { // TxId corresponds to the JSON schema field "txId". TxId string `json:"txId" yaml:"txId" mapstructure:"txId"` }
func (*MintNFTWithMetadataOutput) UnmarshalJSON ¶
func (j *MintNFTWithMetadataOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MultiBatchBurnNFTInput ¶
type MultiBatchBurnNFTInput struct { // Inputs corresponds to the JSON schema field "inputs". Inputs []BatchBurnNFTInput `json:"inputs" yaml:"inputs" mapstructure:"inputs"` }
func (*MultiBatchBurnNFTInput) UnmarshalJSON ¶
func (j *MultiBatchBurnNFTInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MultiBatchBurnNFTOutput ¶
type MultiBatchBurnNFTOutput map[string]interface{}
type MultiBuildUpdateEvent ¶
type MultiBuildUpdateEvent struct { // 建造物信息 BuildDatas []BuildData `json:"buildDatas" yaml:"buildDatas" mapstructure:"buildDatas"` // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` }
func (*MultiBuildUpdateEvent) UnmarshalJSON ¶
func (j *MultiBuildUpdateEvent) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MultiGetPlayerInfoByUserIdInput ¶
type MultiGetPlayerInfoByUserIdInput struct { // UserIds corresponds to the JSON schema field "userIds". UserIds []string `json:"userIds" yaml:"userIds" mapstructure:"userIds"` }
func (*MultiGetPlayerInfoByUserIdInput) UnmarshalJSON ¶
func (j *MultiGetPlayerInfoByUserIdInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MultiGetPlayerInfoByUserIdOutput ¶
type MultiGetPlayerInfoByUserIdOutput struct { // PlayerInfos corresponds to the JSON schema field "playerInfos". PlayerInfos []PlayerInfo `json:"playerInfos" yaml:"playerInfos" mapstructure:"playerInfos"` }
func (*MultiGetPlayerInfoByUserIdOutput) UnmarshalJSON ¶
func (j *MultiGetPlayerInfoByUserIdOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MultiGetPlayerUsingNftsByUserIdInput ¶
type MultiGetPlayerUsingNftsByUserIdInput struct { // UserIds corresponds to the JSON schema field "userIds". UserIds []string `json:"userIds" yaml:"userIds" mapstructure:"userIds"` }
func (*MultiGetPlayerUsingNftsByUserIdInput) UnmarshalJSON ¶
func (j *MultiGetPlayerUsingNftsByUserIdInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MultiGetPlayerUsingNftsByUserIdOutput ¶
type MultiGetPlayerUsingNftsByUserIdOutput struct { // UserUsingNfts corresponds to the JSON schema field "UserUsingNfts". UserUsingNfts []UserUsingNft `json:"UserUsingNfts" yaml:"UserUsingNfts" mapstructure:"UserUsingNfts"` }
func (*MultiGetPlayerUsingNftsByUserIdOutput) UnmarshalJSON ¶
func (j *MultiGetPlayerUsingNftsByUserIdOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MultiLandDataUpdateEvent ¶
type MultiLandDataUpdateEvent struct { // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // Lands corresponds to the JSON schema field "lands". Lands []LandData `json:"lands" yaml:"lands" mapstructure:"lands"` }
func (*MultiLandDataUpdateEvent) UnmarshalJSON ¶
func (j *MultiLandDataUpdateEvent) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MultiRecyclingEvent ¶
type MultiRecyclingEvent struct { // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // RecyclingInfos corresponds to the JSON schema field "recyclingInfos". RecyclingInfos []RecyclingInfo `json:"recyclingInfos" yaml:"recyclingInfos" mapstructure:"recyclingInfos"` }
func (*MultiRecyclingEvent) UnmarshalJSON ¶
func (j *MultiRecyclingEvent) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MultiUpdateUserNFT ¶
type MultiUpdateUserNFT struct { // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // 来源坐标 // 当捡取时携带且不为0 FromLandId int `json:"fromLandId" yaml:"fromLandId" mapstructure:"fromLandId"` // 来源合成图鉴 FromRecipeInfo *RecipeInfo `json:"fromRecipeInfo,omitempty" yaml:"fromRecipeInfo,omitempty" mapstructure:"fromRecipeInfo,omitempty"` // NFT信息 Nfts []NFT `json:"nfts" yaml:"nfts" mapstructure:"nfts"` // 接收NFT的用户钱包地址 RecipientBlockchainAddress *string `` /* 139-byte string literal not displayed */ // 发送NFT的用户钱包地址 SenderBlockchainAddress *string `` /* 130-byte string literal not displayed */ // 区块链交易hash Txn *string `json:"txn,omitempty" yaml:"txn,omitempty" mapstructure:"txn,omitempty"` // 归属用户id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*MultiUpdateUserNFT) UnmarshalJSON ¶
func (j *MultiUpdateUserNFT) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type NFT ¶
type NFT struct { // NFT address Address string `json:"address" yaml:"address" mapstructure:"address"` // NFT amount Amount int `json:"amount" yaml:"amount" mapstructure:"amount"` // NFT 变化量 // 默认值为0, 当某一个事件发出时, 若为n<0则表示此次事件导致的nft数量减少n, n>0则表示此次事件导致的nft数量增加n AmountOfChange int `json:"amountOfChange" yaml:"amountOfChange" mapstructure:"amountOfChange"` // CreatedAt corresponds to the JSON schema field "createdAt". CreatedAt int `json:"createdAt" yaml:"createdAt" mapstructure:"createdAt"` // NFT id Id string `json:"id" yaml:"id" mapstructure:"id"` // 该NFT是否是Meland.ai官方NFT IsMelandAI bool `json:"isMelandAI" yaml:"isMelandAI" mapstructure:"isMelandAI"` // 只有当isMelandAI为true时, 才存在, 否则为空字符串 ItemId string `json:"itemId" yaml:"itemId" mapstructure:"itemId"` // NFT metadata info // 如果非第三方则必须有metadata // 目前的实现是, 如果是第三方NFT, 则metadata为空, 直接将tokenURL返回给前端解析即可. // example: // https://nftmetadata-service-release.melandworld.com/placeable/80000031/1 Metadata *NFTMetadata `json:"metadata,omitempty" yaml:"metadata,omitempty" mapstructure:"metadata,omitempty"` // 描述当前nft存储于那条链上 Network string `json:"network" yaml:"network" mapstructure:"network"` // product Id ProductId string `json:"productId" yaml:"productId" mapstructure:"productId"` // NFT token id TokenId string `json:"tokenId" yaml:"tokenId" mapstructure:"tokenId"` // NFT metadata url // https://nftmetadata-service-release.melandworld.com/placeable/80000031/1 TokenURL string `json:"tokenURL" yaml:"tokenURL" mapstructure:"tokenURL"` }
func (*NFT) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type NFTAttribute ¶
type NFTAttribute struct { // DisplayType corresponds to the JSON schema field "display_type". DisplayType *string `json:"display_type,omitempty" yaml:"display_type,omitempty" mapstructure:"display_type,omitempty"` // TraitType corresponds to the JSON schema field "trait_type". TraitType string `json:"trait_type" yaml:"trait_type" mapstructure:"trait_type"` // Value corresponds to the JSON schema field "value". Value string `json:"value" yaml:"value" mapstructure:"value"` }
NFTAttribute 为产品定义的每个NFT的属性.
func GetNftTypeTrait ¶
func GetNftTypeTrait(nft NFT) *NFTAttribute
func (*NFTAttribute) UnmarshalJSON ¶
func (j *NFTAttribute) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type NFTMetadata ¶
type NFTMetadata struct { // NFT gif animation url AnimationUrl *string `json:"animation_url,omitempty" yaml:"animation_url,omitempty" mapstructure:"animation_url,omitempty"` // NFT的额外属性. Attributes []NFTAttribute `json:"attributes" yaml:"attributes" mapstructure:"attributes"` // BackgroundColor corresponds to the JSON schema field "background_color". BackgroundColor *string `json:"background_color,omitempty" yaml:"background_color,omitempty" mapstructure:"background_color,omitempty"` // NFT description Description string `json:"description" yaml:"description" mapstructure:"description"` // NFT 扩展url // 有扩展URL的NFT社区会实现规范用户点击进行跳转。 ExternalUrl *string `json:"external_url,omitempty" yaml:"external_url,omitempty" mapstructure:"external_url,omitempty"` // NFT image data. Image *string `json:"image,omitempty" yaml:"image,omitempty" mapstructure:"image,omitempty"` // ImageData corresponds to the JSON schema field "image_data". ImageData *string `json:"image_data,omitempty" yaml:"image_data,omitempty" mapstructure:"image_data,omitempty"` // ImageUrl corresponds to the JSON schema field "image_url". ImageUrl *string `json:"image_url,omitempty" yaml:"image_url,omitempty" mapstructure:"image_url,omitempty"` // NFT的原始数据. 只有meland.ai的NFT才会携带 // 基于策划的表格配置生成. MelandAttributes []MelandAttribute `json:"melandAttributes,omitempty" yaml:"melandAttributes,omitempty" mapstructure:"melandAttributes,omitempty"` // NFT name Name string `json:"name" yaml:"name" mapstructure:"name"` // Youtube video url YoutubeUrl *string `json:"youtube_url,omitempty" yaml:"youtube_url,omitempty" mapstructure:"youtube_url,omitempty"` }
NFT metadata源信息 https://docs.opensea.io/docs/metadata-standards
func (*NFTMetadata) UnmarshalJSON ¶
func (j *NFTMetadata) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type NFTPlaceableTimeout ¶
type NFTPlaceableTimeout struct { // NFT Id NftId string `json:"nftId" yaml:"nftId" mapstructure:"nftId"` // 名字(是否唯一) TimeoutSec int `json:"timeoutSec" yaml:"timeoutSec" mapstructure:"timeoutSec"` }
NFT放置过期时间结构体
func (*NFTPlaceableTimeout) UnmarshalJSON ¶
func (j *NFTPlaceableTimeout) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type NFTTraitPlaceableLands ¶
type NFTTraitPlaceableLands string
const NFTTraitPlaceableLandsOccupied NFTTraitPlaceableLands = "Occupied"
const NFTTraitPlaceableLandsTicket NFTTraitPlaceableLands = "Ticket"
const NFTTraitPlaceableLandsVIP NFTTraitPlaceableLands = "VIP"
func (*NFTTraitPlaceableLands) UnmarshalJSON ¶
func (j *NFTTraitPlaceableLands) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type NFTTraitQuality ¶
type NFTTraitQuality string
const NFTTraitQualityAdvanced NFTTraitQuality = "Advanced"
const NFTTraitQualityBasic NFTTraitQuality = "Basic"
const NFTTraitQualityEnhanced NFTTraitQuality = "Enhanced"
const NFTTraitQualitySuper NFTTraitQuality = "Super"
const NFTTraitQualityUltimate NFTTraitQuality = "Ultimate"
func (*NFTTraitQuality) UnmarshalJSON ¶
func (j *NFTTraitQuality) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type NFTTraitRarity ¶
type NFTTraitRarity string
const NFTTraitRarityCommon NFTTraitRarity = "common"
const NFTTraitRarityEpic NFTTraitRarity = "epic"
const NFTTraitRarityMythic NFTTraitRarity = "mythic"
const NFTTraitRarityRare NFTTraitRarity = "rare"
const NFTTraitRarityUnique NFTTraitRarity = "unique"
func (*NFTTraitRarity) UnmarshalJSON ¶
func (j *NFTTraitRarity) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type NFTTraitSkillLevel ¶
type NFTTraitSkillLevel interface{}
type NFTTraitType ¶
type NFTTraitType string
const NFTTraitTypeBow NFTTraitType = "Bow"
const NFTTraitTypeChestArmor NFTTraitType = "Chest Armor"
const NFTTraitTypeConsumable NFTTraitType = "Consumable"
const NFTTraitTypeDagger NFTTraitType = "Dagger"
const NFTTraitTypeFeetArmor NFTTraitType = "Feet Armor"
const NFTTraitTypeHandsArmor NFTTraitType = "Hands Armor"
const NFTTraitTypeHeadArmor NFTTraitType = "Head Armor"
const NFTTraitTypeLegsArmor NFTTraitType = "Legs Armor"
const NFTTraitTypeMaterial NFTTraitType = "Material"
const NFTTraitTypeMysteryBox NFTTraitType = "MysteryBox"
const NFTTraitTypePlaceable NFTTraitType = "Placeable"
const NFTTraitTypeSpear NFTTraitType = "Spear"
const NFTTraitTypeSword NFTTraitType = "Sword"
const NFTTraitTypeWearable NFTTraitType = "Wearable"
func (*NFTTraitType) UnmarshalJSON ¶
func (j *NFTTraitType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type NFTTraitTypes ¶
type NFTTraitTypes string
const NFTTraitTypesAttack NFTTraitTypes = "Attack"
const NFTTraitTypesAttackSpeed NFTTraitTypes = "Attack Speed"
const NFTTraitTypesCoreSkillId NFTTraitTypes = "CoreSkillId"
const NFTTraitTypesCreator NFTTraitTypes = "Creator"
const NFTTraitTypesCritDamage NFTTraitTypes = "Crit Damage"
const NFTTraitTypesCritPoints NFTTraitTypes = "Crit Points"
const NFTTraitTypesDefence NFTTraitTypes = "Defence"
const NFTTraitTypesDodgePoints NFTTraitTypes = "Dodge Points"
const NFTTraitTypesFertilize NFTTraitTypes = "Fertilize"
const NFTTraitTypesGender NFTTraitTypes = "Gender"
const NFTTraitTypesGetBuff NFTTraitTypes = "Get Buff"
const NFTTraitTypesHPRecovery NFTTraitTypes = "HP Recovery"
const NFTTraitTypesHitPoints NFTTraitTypes = "Hit Points"
const NFTTraitTypesLearnRecipe NFTTraitTypes = "Learn Recipe"
const NFTTraitTypesMaxHP NFTTraitTypes = "MaxHP"
const NFTTraitTypesMoveSpeed NFTTraitTypes = "Move Speed"
const NFTTraitTypesOccupyLand NFTTraitTypes = "Occupy Land"
const NFTTraitTypesPlaceableLands NFTTraitTypes = "Placeable Lands"
const NFTTraitTypesQuality NFTTraitTypes = "Quality"
const NFTTraitTypesRarity NFTTraitTypes = "Rarity"
const NFTTraitTypesRequiresLevel NFTTraitTypes = "Requires level"
const NFTTraitTypesRestoreHP NFTTraitTypes = "Restore HP"
const NFTTraitTypesSeries NFTTraitTypes = "Series"
const NFTTraitTypesSkillLevel NFTTraitTypes = "SkillLevel"
const NFTTraitTypesSowSeeds NFTTraitTypes = "Sow Seeds"
const NFTTraitTypesType NFTTraitTypes = "Type"
const NFTTraitTypesWearingPosition NFTTraitTypes = "Wearing Position"
func (*NFTTraitTypes) UnmarshalJSON ¶
func (j *NFTTraitTypes) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type NFTTraitWearingPosition ¶
type NFTTraitWearingPosition string
const NFTTraitWearingPositionGloves NFTTraitWearingPosition = "Gloves"
const NFTTraitWearingPositionHead NFTTraitWearingPosition = "Head"
const NFTTraitWearingPositionLowerBody NFTTraitWearingPosition = "Lower Body"
const NFTTraitWearingPositionShoes NFTTraitWearingPosition = "Shoes"
const NFTTraitWearingPositionUpperBody NFTTraitWearingPosition = "Upper Body"
func (*NFTTraitWearingPosition) UnmarshalJSON ¶
func (j *NFTTraitWearingPosition) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PVPEndType ¶
type PVPEndType string
const PVPEndTypeEndTypeTie PVPEndType = "endTypeTie"
const PVPEndTypeEndTypeWin PVPEndType = "endTypeWin"
func (*PVPEndType) UnmarshalJSON ¶
func (j *PVPEndType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PVPMatchEnterInput ¶
type PVPMatchEnterInput struct { // Player corresponds to the JSON schema field "player". Player PVPPlayer `json:"player" yaml:"player" mapstructure:"player"` }
func (*PVPMatchEnterInput) UnmarshalJSON ¶
func (j *PVPMatchEnterInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PVPMatchEnterOutput ¶
type PVPMatchEnterOutput struct { // Succese corresponds to the JSON schema field "succese". Succese bool `json:"succese" yaml:"succese" mapstructure:"succese"` }
func (*PVPMatchEnterOutput) UnmarshalJSON ¶
func (j *PVPMatchEnterOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PVPMatchLeaveInput ¶
type PVPMatchLeaveInput struct { // Player corresponds to the JSON schema field "player". Player PVPPlayer `json:"player" yaml:"player" mapstructure:"player"` }
func (*PVPMatchLeaveInput) UnmarshalJSON ¶
func (j *PVPMatchLeaveInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PVPMatchLeaveOutput ¶
type PVPMatchLeaveOutput struct { // Succese corresponds to the JSON schema field "succese". Succese bool `json:"succese" yaml:"succese" mapstructure:"succese"` }
func (*PVPMatchLeaveOutput) UnmarshalJSON ¶
func (j *PVPMatchLeaveOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PVPPKSessionStatus ¶
type PVPPKSessionStatus string
const PVPPKSessionStatusEnded PVPPKSessionStatus = "ended"
const PVPPKSessionStatusPreloading PVPPKSessionStatus = "preloading"
const PVPPKSessionStatusStarted PVPPKSessionStatus = "started"
func (*PVPPKSessionStatus) UnmarshalJSON ¶
func (j *PVPPKSessionStatus) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PVPPlayer ¶
type PVPPlayer struct { // Id corresponds to the JSON schema field "id". Id string `json:"id" yaml:"id" mapstructure:"id"` // Type corresponds to the JSON schema field "type". Type PVPUserType `json:"type" yaml:"type" mapstructure:"type"` }
func (*PVPPlayer) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type PVPRoomPreLeaveInput ¶
type PVPRoomPreLeaveInput struct { // Player corresponds to the JSON schema field "player". Player PVPPlayer `json:"player" yaml:"player" mapstructure:"player"` // RoomId corresponds to the JSON schema field "roomId". RoomId string `json:"roomId" yaml:"roomId" mapstructure:"roomId"` }
func (*PVPRoomPreLeaveInput) UnmarshalJSON ¶
func (j *PVPRoomPreLeaveInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PVPRoomPreLeaveOutput ¶
type PVPRoomPreLeaveOutput struct { // CanLeave corresponds to the JSON schema field "canLeave". CanLeave bool `json:"canLeave" yaml:"canLeave" mapstructure:"canLeave"` }
func (*PVPRoomPreLeaveOutput) UnmarshalJSON ¶
func (j *PVPRoomPreLeaveOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PVPRoomReadyInput ¶
type PVPRoomReadyInput struct { // Player corresponds to the JSON schema field "player". Player PVPPlayer `json:"player" yaml:"player" mapstructure:"player"` // PvpRoomId corresponds to the JSON schema field "pvpRoomId". PvpRoomId string `json:"pvpRoomId" yaml:"pvpRoomId" mapstructure:"pvpRoomId"` }
func (*PVPRoomReadyInput) UnmarshalJSON ¶
func (j *PVPRoomReadyInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PVPRoomReadyOutput ¶
type PVPRoomReadyOutput map[string]interface{}
type PVPServiceAction ¶
type PVPServiceAction string
const PVPServiceActionCreatePVPRoom PVPServiceAction = "CreatePVPRoom"
const PVPServiceActionGetCurrentPkSessionId PVPServiceAction = "GetCurrentPkSessionId"
const PVPServiceActionGetPlayerPvpProfile PVPServiceAction = "GetPlayerPvpProfile"
const PVPServiceActionGetPlayerPvpRank PVPServiceAction = "GetPlayerPvpRank"
const PVPServiceActionGetPvpHistory PVPServiceAction = "GetPvpHistory"
const PVPServiceActionPVPMatchEnter PVPServiceAction = "PVPMatchEnter"
const PVPServiceActionPVPMatchLeave PVPServiceAction = "PVPMatchLeave"
const PVPServiceActionPVPRoomPreLeave PVPServiceAction = "PVPRoomPreLeave"
const PVPServiceActionPVPRoomReady PVPServiceAction = "PVPRoomReady"
const PVPServiceActionPkSessionAgain PVPServiceAction = "PkSessionAgain"
const PVPServiceActionPkSessionDoQuestion PVPServiceAction = "PkSessionDoQuestion"
const PVPServiceActionPkSessionLoadSuccess PVPServiceAction = "PkSessionLoadSuccess"
const PVPServiceActionPkSessionUITick PVPServiceAction = "PkSessionUITick"
const PVPServiceActionPvpSurrender PVPServiceAction = "PvpSurrender"
func (*PVPServiceAction) UnmarshalJSON ¶
func (j *PVPServiceAction) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PVPSubscriptionEvent ¶
type PVPSubscriptionEvent string
const PVPSubscriptionEventPVPMatchBegin PVPSubscriptionEvent = "PVPMatchBegin"
func (*PVPSubscriptionEvent) UnmarshalJSON ¶
func (j *PVPSubscriptionEvent) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PVPType ¶
type PVPType string
const PVPTypePvpTypeMatch PVPType = "pvpTypeMatch"
const PVPTypePvpTypePk PVPType = "pvpTypePk"
func (*PVPType) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type PVPUserType ¶
type PVPUserType string
const PVPUserTypeGuest PVPUserType = "guest"
const PVPUserTypeUser PVPUserType = "user"
func (*PVPUserType) UnmarshalJSON ¶
func (j *PVPUserType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PageMeta ¶
type PageMeta struct { // Count corresponds to the JSON schema field "count". Count int `json:"count" yaml:"count" mapstructure:"count"` }
func (*PageMeta) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type PkSessionAgainInput ¶
type PkSessionAgainInput struct { // PkSessionId corresponds to the JSON schema field "pkSessionId". PkSessionId string `json:"pkSessionId" yaml:"pkSessionId" mapstructure:"pkSessionId"` }
func (*PkSessionAgainInput) UnmarshalJSON ¶
func (j *PkSessionAgainInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PkSessionAgainOutput ¶
type PkSessionAgainOutput struct { // PkRoomId corresponds to the JSON schema field "pkRoomId". PkRoomId string `json:"pkRoomId" yaml:"pkRoomId" mapstructure:"pkRoomId"` }
func (*PkSessionAgainOutput) UnmarshalJSON ¶
func (j *PkSessionAgainOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PkSessionDoQuestionInput ¶
type PkSessionDoQuestionInput struct { // AnswerSequentialMatch corresponds to the JSON schema field // "answerSequentialMatch". AnswerSequentialMatch []string `json:"answerSequentialMatch,omitempty" yaml:"answerSequentialMatch,omitempty" mapstructure:"answerSequentialMatch,omitempty"` // PkSessionId corresponds to the JSON schema field "pkSessionId". PkSessionId string `json:"pkSessionId" yaml:"pkSessionId" mapstructure:"pkSessionId"` // Player corresponds to the JSON schema field "player". Player PVPPlayer `json:"player" yaml:"player" mapstructure:"player"` // QuestionId corresponds to the JSON schema field "questionId". QuestionId string `json:"questionId" yaml:"questionId" mapstructure:"questionId"` }
func (*PkSessionDoQuestionInput) UnmarshalJSON ¶
func (j *PkSessionDoQuestionInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PkSessionDoQuestionOutput ¶
type PkSessionDoQuestionOutput struct { // IsCorrect corresponds to the JSON schema field "isCorrect". IsCorrect bool `json:"isCorrect" yaml:"isCorrect" mapstructure:"isCorrect"` }
func (*PkSessionDoQuestionOutput) UnmarshalJSON ¶
func (j *PkSessionDoQuestionOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PkSessionLoadSuccessInput ¶
type PkSessionLoadSuccessInput struct { // PkSessionId corresponds to the JSON schema field "pkSessionId". PkSessionId string `json:"pkSessionId" yaml:"pkSessionId" mapstructure:"pkSessionId"` // Player corresponds to the JSON schema field "player". Player PVPPlayer `json:"player" yaml:"player" mapstructure:"player"` }
func (*PkSessionLoadSuccessInput) UnmarshalJSON ¶
func (j *PkSessionLoadSuccessInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PkSessionLoadSuccessOutput ¶
type PkSessionLoadSuccessOutput map[string]interface{}
type PkSessionUITickInput ¶
type PkSessionUITickInput struct { // Data corresponds to the JSON schema field "data". Data string `json:"data" yaml:"data" mapstructure:"data"` // PkSessionId corresponds to the JSON schema field "pkSessionId". PkSessionId string `json:"pkSessionId" yaml:"pkSessionId" mapstructure:"pkSessionId"` // Player corresponds to the JSON schema field "player". Player PVPPlayer `json:"player" yaml:"player" mapstructure:"player"` }
func (*PkSessionUITickInput) UnmarshalJSON ¶
func (j *PkSessionUITickInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PkSessionUITickOutput ¶
type PkSessionUITickOutput map[string]interface{}
type PlayerAvatar ¶
type PlayerAvatar struct { // Cid corresponds to the JSON schema field "cid". Cid int `json:"cid" yaml:"cid" mapstructure:"cid"` // NftId corresponds to the JSON schema field "nftId". NftId string `json:"nftId" yaml:"nftId" mapstructure:"nftId"` // NftJson corresponds to the JSON schema field "nftJson". NftJson string `json:"nftJson" yaml:"nftJson" mapstructure:"nftJson"` // Pos corresponds to the JSON schema field "pos". Pos int `json:"pos" yaml:"pos" mapstructure:"pos"` }
func (*PlayerAvatar) UnmarshalJSON ¶
func (j *PlayerAvatar) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PlayerDeath ¶
type PlayerDeath struct { // 玩家死亡的附近landId DeathLandId int `json:"deathLandId" yaml:"deathLandId" mapstructure:"deathLandId"` // 造成玩家死亡的生物或用户id KillerId string `json:"killerId" yaml:"killerId" mapstructure:"killerId"` // 造成玩家死亡的生物或用户名称 KillerName string `json:"killerName" yaml:"killerName" mapstructure:"killerName"` // 最后造成死亡的数值 LastDamage float64 `json:"lastDamage" yaml:"lastDamage" mapstructure:"lastDamage"` // 死亡的用户id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
玩家死亡事件, 当玩家死亡时触发
func (*PlayerDeath) UnmarshalJSON ¶
func (j *PlayerDeath) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PlayerInfo ¶
type PlayerInfo struct { // CurExp corresponds to the JSON schema field "curExp". CurExp int `json:"curExp" yaml:"curExp" mapstructure:"curExp"` // CurHp corresponds to the JSON schema field "curHp". CurHp int `json:"curHp" yaml:"curHp" mapstructure:"curHp"` // Feature corresponds to the JSON schema field "feature". Feature string `json:"feature" yaml:"feature" mapstructure:"feature"` // Icon corresponds to the JSON schema field "icon". Icon string `json:"icon" yaml:"icon" mapstructure:"icon"` // Level corresponds to the JSON schema field "level". Level int `json:"level" yaml:"level" mapstructure:"level"` // PlayerName corresponds to the JSON schema field "playerName". PlayerName string `json:"playerName" yaml:"playerName" mapstructure:"playerName"` // 角色cid (男性 1001 / 女性 1002) RoleCId int `json:"roleCId" yaml:"roleCId" mapstructure:"roleCId"` // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*PlayerInfo) UnmarshalJSON ¶
func (j *PlayerInfo) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PlayerItemSlot ¶
type PlayerItemSlot struct { // Level corresponds to the JSON schema field "level". Level int `json:"level" yaml:"level" mapstructure:"level"` // Position corresponds to the JSON schema field "position". Position int `json:"position" yaml:"position" mapstructure:"position"` }
func (*PlayerItemSlot) UnmarshalJSON ¶
func (j *PlayerItemSlot) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PlayerKilled ¶
type PlayerKilled struct { // 怪物被击杀的坐标 KilledLandId int `json:"killedLandId" yaml:"killedLandId" mapstructure:"killedLandId"` // 最后一击的伤害 LastDamage float64 `json:"lastDamage" yaml:"lastDamage" mapstructure:"lastDamage"` // 击杀的目标id TargetId string `json:"targetId" yaml:"targetId" mapstructure:"targetId"` // 击杀的目标名称 TargetName string `json:"targetName" yaml:"targetName" mapstructure:"targetName"` // 用户id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
玩家击杀怪物
func (*PlayerKilled) UnmarshalJSON ¶
func (j *PlayerKilled) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PlayerReborn ¶
type PlayerReborn struct { // 重生的地格id RebornLandId int `json:"rebornLandId" yaml:"rebornLandId" mapstructure:"rebornLandId"` // 玩家重生类型 Type PlayerRebornType `json:"type" yaml:"type" mapstructure:"type"` // 重生的玩家id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
玩家重生事件, 当玩家重生时, 会触发此事件
func (*PlayerReborn) UnmarshalJSON ¶
func (j *PlayerReborn) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PlayerRebornType ¶
type PlayerRebornType string
const PlayerRebornTypeInPlace PlayerRebornType = "in_place"
const PlayerRebornTypeMainCity PlayerRebornType = "main_city"
func (*PlayerRebornType) UnmarshalJSON ¶
func (j *PlayerRebornType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type Prefetch ¶
type Prefetch struct { // QuestionId corresponds to the JSON schema field "questionId". QuestionId string `json:"questionId" yaml:"questionId" mapstructure:"questionId"` // QuestionType corresponds to the JSON schema field "questionType". QuestionType QuestionType `json:"questionType" yaml:"questionType" mapstructure:"questionType"` // Resources corresponds to the JSON schema field "resources". Resources []string `json:"resources" yaml:"resources" mapstructure:"resources"` }
func (*Prefetch) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type PvpHistory ¶
type PvpHistory struct { // EndType corresponds to the JSON schema field "endType". EndType string `json:"endType" yaml:"endType" mapstructure:"endType"` // Loser corresponds to the JSON schema field "loser". Loser string `json:"loser" yaml:"loser" mapstructure:"loser"` // LoserName corresponds to the JSON schema field "loserName". LoserName string `json:"loserName" yaml:"loserName" mapstructure:"loserName"` // LoserScore corresponds to the JSON schema field "loserScore". LoserScore int `json:"loserScore" yaml:"loserScore" mapstructure:"loserScore"` // PvpType corresponds to the JSON schema field "pvpType". PvpType string `json:"pvpType" yaml:"pvpType" mapstructure:"pvpType"` // ScoreOffset corresponds to the JSON schema field "scoreOffset". ScoreOffset int `json:"scoreOffset" yaml:"scoreOffset" mapstructure:"scoreOffset"` // TimeSec corresponds to the JSON schema field "timeSec". TimeSec int `json:"timeSec" yaml:"timeSec" mapstructure:"timeSec"` // Winner corresponds to the JSON schema field "winner". Winner string `json:"winner" yaml:"winner" mapstructure:"winner"` // WinnerName corresponds to the JSON schema field "winnerName". WinnerName string `json:"winnerName" yaml:"winnerName" mapstructure:"winnerName"` // WinnerScore corresponds to the JSON schema field "winnerScore". WinnerScore int `json:"winnerScore" yaml:"winnerScore" mapstructure:"winnerScore"` }
func (*PvpHistory) UnmarshalJSON ¶
func (j *PvpHistory) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PvpPlayerProfile ¶
type PvpPlayerProfile struct { // Avatars corresponds to the JSON schema field "avatars". Avatars []PlayerAvatar `json:"avatars" yaml:"avatars" mapstructure:"avatars"` // BaseInfo corresponds to the JSON schema field "baseInfo". BaseInfo PlayerInfo `json:"baseInfo" yaml:"baseInfo" mapstructure:"baseInfo"` // ItemSlots corresponds to the JSON schema field "itemSlots". ItemSlots []PlayerItemSlot `json:"itemSlots" yaml:"itemSlots" mapstructure:"itemSlots"` // PlayerId corresponds to the JSON schema field "playerId". PlayerId string `json:"playerId" yaml:"playerId" mapstructure:"playerId"` // Score corresponds to the JSON schema field "score". Score int `json:"score" yaml:"score" mapstructure:"score"` }
func (*PvpPlayerProfile) UnmarshalJSON ¶
func (j *PvpPlayerProfile) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PvpPlayerRank ¶
type PvpPlayerRank struct { // Avatars corresponds to the JSON schema field "avatars". Avatars []PlayerAvatar `json:"avatars" yaml:"avatars" mapstructure:"avatars"` // BaseInfo corresponds to the JSON schema field "baseInfo". BaseInfo PlayerInfo `json:"baseInfo" yaml:"baseInfo" mapstructure:"baseInfo"` // PlayerId corresponds to the JSON schema field "playerId". PlayerId string `json:"playerId" yaml:"playerId" mapstructure:"playerId"` // Rank corresponds to the JSON schema field "rank". Rank int `json:"rank" yaml:"rank" mapstructure:"rank"` // Score corresponds to the JSON schema field "score". Score int `json:"score" yaml:"score" mapstructure:"score"` }
func (*PvpPlayerRank) UnmarshalJSON ¶
func (j *PvpPlayerRank) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PvpSurrenderInput ¶
type PvpSurrenderInput struct { // PkSessionId corresponds to the JSON schema field "pkSessionId". PkSessionId string `json:"pkSessionId" yaml:"pkSessionId" mapstructure:"pkSessionId"` // PlayerId corresponds to the JSON schema field "playerId". PlayerId string `json:"playerId" yaml:"playerId" mapstructure:"playerId"` }
func (*PvpSurrenderInput) UnmarshalJSON ¶
func (j *PvpSurrenderInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type PvpSurrenderOutput ¶
type PvpSurrenderOutput struct { // Success corresponds to the JSON schema field "success". Success bool `json:"success" yaml:"success" mapstructure:"success"` }
func (*PvpSurrenderOutput) UnmarshalJSON ¶
func (j *PvpSurrenderOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type Question ¶
type Question struct { // Id corresponds to the JSON schema field "id". Id string `json:"id" yaml:"id" mapstructure:"id"` // StructJSON corresponds to the JSON schema field "structJSON". StructJSON string `json:"structJSON" yaml:"structJSON" mapstructure:"structJSON"` }
func (*Question) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type QuestionType ¶
type QuestionType string
const QuestionTypeAdjustClock QuestionType = "AdjustClock"
const QuestionTypeBlockCompute QuestionType = "BlockCompute"
const QuestionTypeCageShuffle QuestionType = "CageShuffle"
const QuestionTypeCardMemory QuestionType = "CardMemory"
const QuestionTypeCuttingArt QuestionType = "CuttingArt"
const QuestionTypeHitBrick QuestionType = "HitBrick"
const QuestionTypeMatchingMouse QuestionType = "MatchingMouse"
const QuestionTypeQuickFlashMemory QuestionType = "QuickFlashMemory"
const QuestionTypeReverseMemory QuestionType = "ReverseMemory"
const QuestionTypeRotatingSilhouette QuestionType = "RotatingSilhouette"
const QuestionTypeSequenceBalloon QuestionType = "SequenceBalloon"
const QuestionTypeSingleChoice QuestionType = "SingleChoice"
func (*QuestionType) UnmarshalJSON ¶
func (j *QuestionType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type RecipeInfo ¶
type RecipeInfo struct { // 图鉴id Id string `json:"id" yaml:"id" mapstructure:"id"` // 图鉴名称 Name string `json:"name" yaml:"name" mapstructure:"name"` }
func (*RecipeInfo) UnmarshalJSON ¶
func (j *RecipeInfo) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type RecyclingInfo ¶
type RecyclingInfo struct { // BuildId corresponds to the JSON schema field "buildId". BuildId int `json:"buildId" yaml:"buildId" mapstructure:"buildId"` // MapId corresponds to the JSON schema field "mapId". MapId int `json:"mapId" yaml:"mapId" mapstructure:"mapId"` }
func (*RecyclingInfo) UnmarshalJSON ¶
func (j *RecyclingInfo) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type RecyclingInput ¶
type RecyclingInput struct { // 建造Id BuildId int `json:"buildId" yaml:"buildId" mapstructure:"buildId"` // 地图id 为多地图准备 MapId int `json:"mapId" yaml:"mapId" mapstructure:"mapId"` // 玩家id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*RecyclingInput) UnmarshalJSON ¶
func (j *RecyclingInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type RecyclingOutput ¶
type RecyclingOutput struct { // 失败, 则返回失败原因, 否则返回空字符串 FailedReason string `json:"failedReason" yaml:"failedReason" mapstructure:"failedReason"` // 是否成功 Success bool `json:"success" yaml:"success" mapstructure:"success"` }
func (*RecyclingOutput) UnmarshalJSON ¶
func (j *RecyclingOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SceneDynamicServiceAction ¶
type SceneDynamicServiceAction string
const SceneDynamicServiceActionStartServer SceneDynamicServiceAction = "StartServer"
func (*SceneDynamicServiceAction) UnmarshalJSON ¶
func (j *SceneDynamicServiceAction) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SendMetaTxInput ¶
type SendMetaTxInput struct { // Data corresponds to the JSON schema field "data". Data string `json:"data" yaml:"data" mapstructure:"data"` // From corresponds to the JSON schema field "from". From string `json:"from" yaml:"from" mapstructure:"from"` // Gas corresponds to the JSON schema field "gas". Gas float64 `json:"gas" yaml:"gas" mapstructure:"gas"` // Nonce corresponds to the JSON schema field "nonce". Nonce string `json:"nonce" yaml:"nonce" mapstructure:"nonce"` // Signature corresponds to the JSON schema field "signature". Signature string `json:"signature" yaml:"signature" mapstructure:"signature"` // To corresponds to the JSON schema field "to". To string `json:"to" yaml:"to" mapstructure:"to"` // Value corresponds to the JSON schema field "value". Value string `json:"value" yaml:"value" mapstructure:"value"` }
func (*SendMetaTxInput) UnmarshalJSON ¶
func (j *SendMetaTxInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SendMetaTxOutput ¶
type SendMetaTxOutput struct { // TxId corresponds to the JSON schema field "txId". TxId string `json:"txId" yaml:"txId" mapstructure:"txId"` }
func (*SendMetaTxOutput) UnmarshalJSON ¶
func (j *SendMetaTxOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SendTxInput ¶
type SendTxInput struct { // Data corresponds to the JSON schema field "data". Data string `json:"data" yaml:"data" mapstructure:"data"` // Gas corresponds to the JSON schema field "gas". Gas float64 `json:"gas" yaml:"gas" mapstructure:"gas"` // To corresponds to the JSON schema field "to". To string `json:"to" yaml:"to" mapstructure:"to"` // Value corresponds to the JSON schema field "value". Value string `json:"value" yaml:"value" mapstructure:"value"` }
func (*SendTxInput) UnmarshalJSON ¶
func (j *SendTxInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SendTxOutput ¶
type SendTxOutput struct { // TxId corresponds to the JSON schema field "txId". TxId string `json:"txId" yaml:"txId" mapstructure:"txId"` }
func (*SendTxOutput) UnmarshalJSON ¶
func (j *SendTxOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type Sex ¶
type Sex string
const SexFEMALE Sex = "FEMALE"
const SexMALE Sex = "MALE"
func (*Sex) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type Skill ¶
type Skill struct { // skill level Level int `json:"level" yaml:"level" mapstructure:"level"` // skill Id, only key SkillId int `json:"skillId" yaml:"skillId" mapstructure:"skillId"` }
func (*Skill) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type SmapleNFT ¶
type SmapleNFT struct { // Amount corresponds to the JSON schema field "amount". Amount int `json:"amount" yaml:"amount" mapstructure:"amount"` // ItemId corresponds to the JSON schema field "itemId". ItemId string `json:"itemId" yaml:"itemId" mapstructure:"itemId"` // Metadata corresponds to the JSON schema field "metadata". Metadata NFTMetadata `json:"metadata" yaml:"metadata" mapstructure:"metadata"` // TokenId corresponds to the JSON schema field "tokenId". TokenId string `json:"tokenId" yaml:"tokenId" mapstructure:"tokenId"` }
func (*SmapleNFT) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type StartServerInput ¶
type StartServerInput struct { // Args corresponds to the JSON schema field "args". Args string `json:"args" yaml:"args" mapstructure:"args"` // Envs corresponds to the JSON schema field "envs". Envs string `json:"envs" yaml:"envs" mapstructure:"envs"` }
func (*StartServerInput) UnmarshalJSON ¶
func (j *StartServerInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type StartServerOutput ¶
type StartServerOutput struct { // ServerAppId corresponds to the JSON schema field "serverAppId". ServerAppId string `json:"serverAppId" yaml:"serverAppId" mapstructure:"serverAppId"` }
func (*StartServerOutput) UnmarshalJSON ¶
func (j *StartServerOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SubscriptionEvent ¶
type SubscriptionEvent string
const SubscriptionEventCloseServer SubscriptionEvent = "CloseServer"
const SubscriptionEventDitaminBurn SubscriptionEvent = "DitaminBurn"
const SubscriptionEventDitaminProduce SubscriptionEvent = "DitaminProduce"
const SubscriptionEventFinishQuestion SubscriptionEvent = "FinishQuestion"
const SubscriptionEventMELDExchange2Ditamin SubscriptionEvent = "MELDExchange2Ditamin"
const SubscriptionEventMELDFutureExchangeRateChange SubscriptionEvent = "MELDFutureExchangeRateChange"
const SubscriptionEventMELDFutureMint SubscriptionEvent = "MELDFutureMint"
const SubscriptionEventMELDFutureRelease SubscriptionEvent = "MELDFutureRelease"
const SubscriptionEventMarketplaceTrade SubscriptionEvent = "MarketplaceTrade"
const SubscriptionEventMultiBuildUpdateEvent SubscriptionEvent = "MultiBuildUpdateEvent"
const SubscriptionEventMultiLandDataUpdateEvent SubscriptionEvent = "MultiLandDataUpdateEvent"
const SubscriptionEventMultiRecyclingEvent SubscriptionEvent = "MultiRecyclingEvent"
const SubscriptionEventMultiUpdateUserNFT SubscriptionEvent = "MultiUpdateUserNFT"
const SubscriptionEventPlayerDeath SubscriptionEvent = "PlayerDeath"
const SubscriptionEventPlayerKilled SubscriptionEvent = "PlayerKilled"
const SubscriptionEventPlayerReborn SubscriptionEvent = "PlayerReborn"
const SubscriptionEventUnloadEquipment SubscriptionEvent = "UnloadEquipment"
const SubscriptionEventUpdateUpcomingUses SubscriptionEvent = "UpdateUpcomingUses"
const SubscriptionEventUpdateUserNFT SubscriptionEvent = "UpdateUserNFT"
const SubscriptionEventUseConsumabled SubscriptionEvent = "UseConsumabled"
const SubscriptionEventUseEquipment SubscriptionEvent = "UseEquipment"
func (*SubscriptionEvent) UnmarshalJSON ¶
func (j *SubscriptionEvent) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type TemporaryToken ¶
type TemporaryToken struct { // CreatedAt corresponds to the JSON schema field "createdAt". CreatedAt string `json:"createdAt" yaml:"createdAt" mapstructure:"createdAt"` // ExpiredAt corresponds to the JSON schema field "expiredAt". ExpiredAt string `json:"expiredAt" yaml:"expiredAt" mapstructure:"expiredAt"` // Id corresponds to the JSON schema field "id". Id string `json:"id" yaml:"id" mapstructure:"id"` // TemporaryTokenExtraInfo corresponds to the JSON schema field // "temporaryTokenExtraInfo". TemporaryTokenExtraInfo *TemporaryTokenExtraInfo `` /* 130-byte string literal not displayed */ // Token corresponds to the JSON schema field "token". Token string `json:"token" yaml:"token" mapstructure:"token"` // UpdatedAt corresponds to the JSON schema field "updatedAt". UpdatedAt string `json:"updatedAt" yaml:"updatedAt" mapstructure:"updatedAt"` // UsedAt corresponds to the JSON schema field "usedAt". UsedAt *string `json:"usedAt,omitempty" yaml:"usedAt,omitempty" mapstructure:"usedAt,omitempty"` }
func (*TemporaryToken) UnmarshalJSON ¶
func (j *TemporaryToken) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type TemporaryTokenExtraInfo ¶
type TemporaryTokenExtraInfo struct { // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*TemporaryTokenExtraInfo) UnmarshalJSON ¶
func (j *TemporaryTokenExtraInfo) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UnloadEquipment ¶
type UnloadEquipment struct { // NftId corresponds to the JSON schema field "nftId". NftId string `json:"nftId" yaml:"nftId" mapstructure:"nftId"` // 游戏角色id PlayerId string `json:"playerId" yaml:"playerId" mapstructure:"playerId"` // 用户id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*UnloadEquipment) UnmarshalJSON ¶
func (j *UnloadEquipment) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UpdateUpcomingUses ¶
type UpdateUpcomingUses struct { // Number corresponds to the JSON schema field "number". Number int `json:"number" yaml:"number" mapstructure:"number"` }
func (*UpdateUpcomingUses) UnmarshalJSON ¶
func (j *UpdateUpcomingUses) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UpdateUserNFT ¶
type UpdateUserNFT struct { // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // 来源坐标 // 当捡取时携带且不为0 FromLandId int `json:"fromLandId" yaml:"fromLandId" mapstructure:"fromLandId"` // NFT信息 Nft NFT `json:"nft" yaml:"nft" mapstructure:"nft"` // 接收NFT的用户钱包地址 RecipientBlockchainAddress *string `` /* 139-byte string literal not displayed */ // 发送NFT的用户钱包地址 SenderBlockchainAddress *string `` /* 130-byte string literal not displayed */ // 区块链交易hash Txn *string `json:"txn,omitempty" yaml:"txn,omitempty" mapstructure:"txn,omitempty"` // 归属用户id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
更新用户的NFT 可能是添加或者数量变更.
func (*UpdateUserNFT) UnmarshalJSON ¶
func (j *UpdateUserNFT) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UpgradePlayerItemSlotsInput ¶
type UpgradePlayerItemSlotsInput struct { // ItemSlots corresponds to the JSON schema field "itemSlots". ItemSlots []PlayerItemSlot `json:"itemSlots" yaml:"itemSlots" mapstructure:"itemSlots"` // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*UpgradePlayerItemSlotsInput) UnmarshalJSON ¶
func (j *UpgradePlayerItemSlotsInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UpgradePlayerItemSlotsOutput ¶
type UpgradePlayerItemSlotsOutput struct { // 是否成功 Success bool `json:"success" yaml:"success" mapstructure:"success"` // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*UpgradePlayerItemSlotsOutput) UnmarshalJSON ¶
func (j *UpgradePlayerItemSlotsOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UseConsumableInput ¶
type UseConsumableInput struct { // 消耗品的数量 Amount int `json:"amount" yaml:"amount" mapstructure:"amount"` // 使用消耗品的动态参数 Args *string `json:"args,omitempty" yaml:"args,omitempty" mapstructure:"args,omitempty"` // 使用消耗品的坐标 LandId int `json:"landId" yaml:"landId" mapstructure:"landId"` // 消耗品的id NftId string `json:"nftId" yaml:"nftId" mapstructure:"nftId"` // 使用消耗品的用户 UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*UseConsumableInput) UnmarshalJSON ¶
func (j *UseConsumableInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UseConsumableOutput ¶
type UseConsumableOutput struct { // 消耗品的数量 Amount int `json:"amount" yaml:"amount" mapstructure:"amount"` // 消耗品的id NftId string `json:"nftId" yaml:"nftId" mapstructure:"nftId"` // Success corresponds to the JSON schema field "success". Success bool `json:"success" yaml:"success" mapstructure:"success"` // 使用消耗品的用户 UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*UseConsumableOutput) UnmarshalJSON ¶
func (j *UseConsumableOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UseConsumabled ¶
type UseConsumabled struct { // 消耗品的数量 Amount int `json:"amount" yaml:"amount" mapstructure:"amount"` // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // 使用消耗品的坐标 LandId int `json:"landId" yaml:"landId" mapstructure:"landId"` // Nft corresponds to the JSON schema field "nft". Nft NFT `json:"nft" yaml:"nft" mapstructure:"nft"` // 使用消耗品的用户 UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*UseConsumabled) UnmarshalJSON ¶
func (j *UseConsumabled) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UseEquipment ¶
type UseEquipment struct { // 装备位置 对时装和装备有效 AvatarPos int `json:"avatarPos" yaml:"avatarPos" mapstructure:"avatarPos"` // Cid corresponds to the JSON schema field "cid". Cid int `json:"cid" yaml:"cid" mapstructure:"cid"` // NftId corresponds to the JSON schema field "nftId". NftId string `json:"nftId" yaml:"nftId" mapstructure:"nftId"` // 游戏角色id PlayerId string `json:"playerId" yaml:"playerId" mapstructure:"playerId"` // 用户id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*UseEquipment) UnmarshalJSON ¶
func (j *UseEquipment) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UseLUAUSDInput ¶
type UseLUAUSDInput struct { // 使用金额 Amount int `json:"amount" yaml:"amount" mapstructure:"amount"` // UseParams corresponds to the JSON schema field "useParams". UseParams string `json:"useParams" yaml:"useParams" mapstructure:"useParams"` // UseType corresponds to the JSON schema field "useType". UseType string `json:"useType" yaml:"useType" mapstructure:"useType"` // 用户id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*UseLUAUSDInput) UnmarshalJSON ¶
func (j *UseLUAUSDInput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UseLUAUSDOutput ¶
type UseLUAUSDOutput struct { // 如果燃烧失败, 则返回失败原因, 否则返回空字符串 FailedReason string `json:"failedReason" yaml:"failedReason" mapstructure:"failedReason"` // 是否成功 Success bool `json:"success" yaml:"success" mapstructure:"success"` }
func (*UseLUAUSDOutput) UnmarshalJSON ¶
func (j *UseLUAUSDOutput) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UseLUAUSDType ¶
type UseLUAUSDType string
const (
USE_LUA_USD_TYPE_UP_TALENT_NODE UseLUAUSDType = "upgradeTalentNode"
)
type User ¶
type User struct { // Avatar corresponds to the JSON schema field "avatar". Avatar string `json:"avatar" yaml:"avatar" mapstructure:"avatar"` // Email corresponds to the JSON schema field "email". Email string `json:"email" yaml:"email" mapstructure:"email"` // Id corresponds to the JSON schema field "id". Id string `json:"id" yaml:"id" mapstructure:"id"` // Mobile corresponds to the JSON schema field "mobile". Mobile string `json:"mobile" yaml:"mobile" mapstructure:"mobile"` // Nickname corresponds to the JSON schema field "nickname". Nickname string `json:"nickname" yaml:"nickname" mapstructure:"nickname"` // Realname corresponds to the JSON schema field "realname". Realname string `json:"realname" yaml:"realname" mapstructure:"realname"` // SchoolId corresponds to the JSON schema field "schoolId". SchoolId string `json:"schoolId" yaml:"schoolId" mapstructure:"schoolId"` // Sex corresponds to the JSON schema field "sex". Sex Sex `json:"sex" yaml:"sex" mapstructure:"sex"` // Username corresponds to the JSON schema field "username". Username string `json:"username" yaml:"username" mapstructure:"username"` // Usertype corresponds to the JSON schema field "usertype". Usertype UserType `json:"usertype" yaml:"usertype" mapstructure:"usertype"` }
func (*User) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type UserStakeAdd ¶
type UserStakeAdd struct { // AmountOfMELD corresponds to the JSON schema field "amountOfMELD". AmountOfMELD string `json:"amountOfMELD" yaml:"amountOfMELD" mapstructure:"amountOfMELD"` // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // StakeLevel corresponds to the JSON schema field "stakeLevel". StakeLevel string `json:"stakeLevel" yaml:"stakeLevel" mapstructure:"stakeLevel"` // UserBlockchainAddress corresponds to the JSON schema field // "userBlockchainAddress". UserBlockchainAddress string `json:"userBlockchainAddress" yaml:"userBlockchainAddress" mapstructure:"userBlockchainAddress"` }
func (*UserStakeAdd) UnmarshalJSON ¶
func (j *UserStakeAdd) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UserStakeClaim ¶
type UserStakeClaim struct { // AmountOfMELD corresponds to the JSON schema field "amountOfMELD". AmountOfMELD string `json:"amountOfMELD" yaml:"amountOfMELD" mapstructure:"amountOfMELD"` // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // StakeLevel corresponds to the JSON schema field "stakeLevel". StakeLevel string `json:"stakeLevel" yaml:"stakeLevel" mapstructure:"stakeLevel"` // UserBlockchainAddress corresponds to the JSON schema field // "userBlockchainAddress". UserBlockchainAddress string `json:"userBlockchainAddress" yaml:"userBlockchainAddress" mapstructure:"userBlockchainAddress"` }
func (*UserStakeClaim) UnmarshalJSON ¶
func (j *UserStakeClaim) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UserStakeExpire ¶
type UserStakeExpire struct { // AmountOfMELD corresponds to the JSON schema field "amountOfMELD". AmountOfMELD string `json:"amountOfMELD" yaml:"amountOfMELD" mapstructure:"amountOfMELD"` // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // StakeLevel corresponds to the JSON schema field "stakeLevel". StakeLevel string `json:"stakeLevel" yaml:"stakeLevel" mapstructure:"stakeLevel"` // UserBlockchainAddress corresponds to the JSON schema field // "userBlockchainAddress". UserBlockchainAddress string `json:"userBlockchainAddress" yaml:"userBlockchainAddress" mapstructure:"userBlockchainAddress"` }
func (*UserStakeExpire) UnmarshalJSON ¶
func (j *UserStakeExpire) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UserStakeHarvest ¶
type UserStakeHarvest struct { // 消息版本号 Etag int `json:"etag" yaml:"etag" mapstructure:"etag"` // HarvestAmountOfMELD corresponds to the JSON schema field "harvestAmountOfMELD". HarvestAmountOfMELD string `json:"harvestAmountOfMELD" yaml:"harvestAmountOfMELD" mapstructure:"harvestAmountOfMELD"` // UserBlockchainAddress corresponds to the JSON schema field // "userBlockchainAddress". UserBlockchainAddress string `json:"userBlockchainAddress" yaml:"userBlockchainAddress" mapstructure:"userBlockchainAddress"` }
func (*UserStakeHarvest) UnmarshalJSON ¶
func (j *UserStakeHarvest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UserType ¶
type UserType string
const UserTypeMANAGER UserType = "MANAGER"
const UserTypeSTUDENT UserType = "STUDENT"
const UserTypeTEACHER UserType = "TEACHER"
func (*UserType) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type UserUsingNft ¶
type UserUsingNft struct { // UserId corresponds to the JSON schema field "userId". UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` // UsingNfts corresponds to the JSON schema field "usingNfts". UsingNfts []UsingNFT `json:"usingNfts" yaml:"usingNfts" mapstructure:"usingNfts"` }
func (*UserUsingNft) UnmarshalJSON ¶
func (j *UserUsingNft) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UsingNFT ¶
type UsingNFT struct { // 装备位置 对时装和装备有效 AvatarPos int `json:"avatarPos" yaml:"avatarPos" mapstructure:"avatarPos"` // Cid corresponds to the JSON schema field "cid". Cid int `json:"cid" yaml:"cid" mapstructure:"cid"` // NftId corresponds to the JSON schema field "nftId". NftId string `json:"nftId" yaml:"nftId" mapstructure:"nftId"` // 游戏角色id PlayerId string `json:"playerId" yaml:"playerId" mapstructure:"playerId"` // 用户id UserId string `json:"userId" yaml:"userId" mapstructure:"userId"` }
func (*UsingNFT) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type Web3ServiceAction ¶
type Web3ServiceAction string
const Web3ServiceActionBatchBurnNFT Web3ServiceAction = "BatchBurnNFT"
const Web3ServiceActionBatchMintNFTWithItemId Web3ServiceAction = "BatchMintNFTWithItemId"
const Web3ServiceActionBurnNFT Web3ServiceAction = "BurnNFT"
const Web3ServiceActionForgetUserRecipes Web3ServiceAction = "ForgetUserRecipes"
const Web3ServiceActionGetUserNFTsByUserIdAndAddress Web3ServiceAction = "GetUserNFTsByUserIdAndAddress"
const Web3ServiceActionGetUserRecipes Web3ServiceAction = "GetUserRecipes"
const Web3ServiceActionLearnUserRecipes Web3ServiceAction = "LearnUserRecipes"
const Web3ServiceActionMergeByRecipe Web3ServiceAction = "MergeByRecipe"
const Web3ServiceActionMintNFTWithItemId Web3ServiceAction = "MintNFTWithItemId"
const Web3ServiceActionMintNFTWithItemIdAndUserAddress Web3ServiceAction = "MintNFTWithItemIdAndUserAddress"
const Web3ServiceActionMultiBatchBurnNFT Web3ServiceAction = "MultiBatchBurnNFT"
const Web3ServiceActionUseConsumable Web3ServiceAction = "UseConsumable"
const Web3ServiceActionUseLUAUSD Web3ServiceAction = "UseLUAUSD"
func (*Web3ServiceAction) UnmarshalJSON ¶
func (j *Web3ServiceAction) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.