// Code generated by goctl. DO NOT EDIT. // goctl 1.7.6 package types type BindTriballyReply struct { AuthUrl string `json:"auth_url"` // 授权地址 } type CarvResult struct { Result *Result `json:"result"` Error *Error `json:"error"` } type Community struct { Id uint `json:"id"` // 社区ID Title string `json:"title"` // 社区标题 Logo string `json:"logo"` // 社区图标 Description string `json:"description"` // 社区描述 StartAt int64 `json:"start_at"` // 开始时间 EndAt int64 `json:"end_at"` // 结束时间 } type EmailKey struct { BeginTime int64 `form:"begin_time"` //begin_time EndTime int64 `form:"end_time"` // end_time Email string `form:"email"` // email ApiKey string `header:"x-api-key"` // x-api-key } type EmailReward struct { Email string `json:"email"` // 邮箱,多个邮箱分号隔开 RewardType string `json:"reward_type"` // 奖励类型: points, elite_points, castile, keys Value float64 `json:"value"` // 数量 Remark string `json:"remark"` // 备注 } type Error struct { Code int `json:"code"` Message string `json:"message"` } type Game7Result struct { Status Status `json:"status"` // 状态 Data Game7ResultData `json:"data"` // 数据 } type Game7ResultData struct { IsValid bool `json:"isValid"` // true:是,false:否 } type Game7TaskCheckReq struct { ApiKey string `header:"x-api-key"` // api key Email string `form:"email"` // 邮箱 Type int8 `form:"type"` // 1.是否在官网注册并链接钱包(是/否) 2.是否有超过两个以上的英雄(是/否) 3.是否消耗召唤券召唤了新英雄(是/否) 4. 是否在游戏内绑定了官网账号(是/否) 5. 是否有一个31级以上的英雄(是/否) 6. 是否完成了主线第一章(是/否) } type GameActionReq struct { RoleId int64 `json:"role_id"` Action string `json:"action"` } type GameActionResp struct { Ret int `json:"ret"` Msg string `json:"msg"` Data interface{} `json:"data"` } type GetCommunityListResp struct { CommunityList []Community `json:"community_list"` // 社区列表 } type GetNftListReq struct { WalletAddress string `form:"wallet_address"` } type GetStakeLevelListReq struct { RoleID int64 `form:"role_id"` // 角色id } type GetStakeLevelListResp struct { State int `json:"state"` // 状态:1表示已开启,可质押, 0表示不可质押 Staking *StakeLevel `json:"staking,optional"` // 质押中的档位信息 RenewLevel *StakeLevel `json:"renew_level,optional"` // 已续约的档位信息 Levels []PointStakeLevel `json:"levels"` // 档位列表 } type GetStakeLogListReq struct { RoleID uint64 `form:"role_id,optional"` // 角色id Page int `form:"page"` // 页码 Size int `form:"size"` // 每页数量 } type GetStakeLogListResp struct { Total int `json:"total"` // 总数 List []StakeLog `json:"list"` // 列表 } type GetTaskListReq struct { CommunityId uint `form:"community_id,optional"` // 所属社区ID } type GetTaskListResp struct { Tasks []Task `json:"tasks"` } type GetTaskRewardReq struct { ID uint `form:"id"` // 任务ID RoleId int64 `form:"role_id,optional"` // 游戏角色ID } type GetTaskRewardResp struct { Points int `json:"points"` // 积分 } type KGeNResult struct { Status KGeNStatus `json:"status"` // 状态 Data KGeNResultData `json:"data"` // 数据 } type KGeNResultData struct { IsValid bool `json:"isValid"` // true:是,false:否 } type KGeNStatus struct { Code int `json:"code"` // 状态码 Msg string `json:"msg"` // 状态信息 } type KGeNTaskCheckReq struct { ApiKey string `header:"x-api-key"` // api key Email string `form:"email"` // 邮箱 Type int8 `form:"type"` // 1.在官网注册(是否) 2.链接钱包(是否) 3.下载并绑定游戏账号(是否) } type PioneerReward struct { InGame float64 `json:"in_game"` // 游戏代币 Stake float64 `json:"stake"` // 挖矿代币 Ambassador float64 `json:"ambassador"` // 大使额外代币 NftBonus float64 `json:"nft_bonus"` // nft 加成 Total float64 `json:"total"` // 总额 } type PointStakeLevel struct { Id int `json:"id"` // 档位id Title string `json:"title"` // 档位标题 ElfName string `json:"elf_name"` // 精灵名称 Level int `json:"level"` // 精灵等级 Points int `json:"points"` // 积分数量 Days float64 `json:"days"` // 质押天数 RenewDays float64 `json:"renew_days"` // 续期天数 Rate float64 `json:"rate"` // 返利比率 } type Result struct { IsValid bool `json:"isValid"` } type StakeByAddressReq struct { Address []string `json:"address"` } type StakeLevel struct { Id int `json:"id"` Title string `json:"title"` // 档位标题 Level int `json:"level"` // 精灵等级 Points int `json:"points"` // 积分数量 Days float64 `json:"days"` // 质押天数 RenewDays float64 `json:"renew_days"` // 续期天数 StartTime string `json:"start_time"` // 开始时间 EndTime string `json:"end_time"` // 结束时间 CanRenew bool `json:"can_renew"` // 是否可续约 } type StakeLog struct { Id uint `json:"id"` // id RoleID uint64 `json:"role_id"` // 角色id LevelId uint `json:"level_id"` // 档位id Level uint `json:"level"` // 精灵等级 Points int `json:"points"` // 积分数量 Action uint8 `json:"action"` // 操作类型:1=质押,2=升级,3=续约,4=解除 CreatedAt int64 `json:"created_at"` // 创建时间 } type StakeNftList struct { RoleId uint64 `json:"role_id,optional"` // 角色id TokenIds []string `json:"token_ids"` // nft列表 } type StakePointReq struct { RoleID int64 `json:"role_id"` // 角色id LevelId int `json:"level_id"` // 档位id Action int `json:"action"` // 操作类型:1表示质押,2表示升级质押, 3表示续约 } type StakeReward struct { Date string `json:"date"` // 日期 Reward float64 `json:"reward"` // 当日发放奖励 } type StakeRewardList struct { RewardList []StakeReward `json:"reward_list"` } type StakeSettleReq struct { Date string `form:"date"` } type StakeTaskDetail struct { StartDate string `json:"start_date"` // 开始日期 EndDate string `json:"end_date"` // 结束日期 CountDown int `json:"count_down"` // 剩余结算时间 ProduceTokensToday float64 `json:"produce_token_today"` // 今日产出代币 GameBonus int `json:"game_bonus"` // 游戏加成比率 CanReceiveTokens float64 `json:"can_receive_tokens"` // 可领取代币数量 TotalIncomeTokens float64 `json:"total_income_tokens"` // 累计收益 } type Status struct { Code int `json:"code"` // 状态码 Msg string `json:"msg"` // 状态信息 } type Task struct { Id uint `json:"id"` // 任务ID CommunityId uint `json:"community_id"` // 所属社区ID Title string `json:"title"` // 任务标题 SubTitle string `json:"sub_title"` // 副标题 Description string `json:"description"` // 任务描述 Points int `json:"points"` // 任务积分 ButtonText string `json:"button_text"` // 按钮文字 Params string `json:"params"` // 参数 Type int8 `json:"type"` // 任务类型: 0=follow_twitter,1=bind_twitter,2=cast_twitter,3=publish_twitter,4=repost_twitter,5=watch_youtube,6=follow_youtube,7=bind_discord,8=join_telegram,9=daily_pay,10=invite_user,11=ambassador_task Url string `json:"url"` // 跳转链接 Sort int `json:"sort"` // 排序 StartAt string `json:"start_at"` // 开始时间 EndAt string `json:"end_at"` // 结束时间 HasFinishCount int `json:"has_finish_count"` // 当前完成进度 TotalCount int `json:"total_count"` // 总进度 FinishState int8 `json:"finish_state"` // 0:未完成 1:待校验 2:已完成未领取 3:已领取 4:不可参与 } type TransferCastileToGameListReq struct { RoleID int64 `json:"role_id,optional"` // 角色id Page int `json:"page,range=[1:],optional,default=1"` // 页码 Size int `json:"size,range=[10:100],optional,default=10"` // 每页数量 } type TransferCastileToGameListResp struct { Total int `json:"total"` // 总数 List []TransferCastileToGameResp `json:"list"` // 列表 } type TransferCastileToGameReq struct { RoleID int64 `json:"role_id"` // 角色id Amount int64 `json:"amount,range=[1:]"` // 数量 } type TransferCastileToGameResp struct { Id int `json:"id"` // id RoleID int64 `json:"role_id"` // 角色id Amount int64 `json:"amount"` // 数量 Status int64 `json:"status"` // 状态 CreatedAt string `json:"created_at"` // 创建时间 } type UnStakeNftReq struct { TokenId string `json:"token_id"` // nftID } type UnlockChapterReq struct { BeginTime int64 `form:"begin_time"` //begin_time EndTime int64 `form:"end_time"` // end_time Email string `form:"email"` // email Chapter int `path:"chapter"` // 章节数 ApiKey string `header:"x-api-key"` // x-api-key } type UserCastileBalanceResp struct { TotalCastile int `json:"total_castile"` //总数 TransferAmount int `json:"transfer_amount"` //已转回游戏内的数量 TotalBalance int `json:"total_balance"` //castile当前余额 } type UserNft struct { TokenId string `json:"token_id"` // nftID Image string `json:"image"` // nft图片 HasStake bool `json:"has_stake"` // 是否已质押 StakeAt string `json:"stake_at"` // 质押时间 RoleId uint64 `json:"role_id"` // 角色id } type UserNftList struct { NftList []UserNft `json:"nft_list"` } type VerifyTaskResultReq struct { ID uint `form:"id"` // 任务ID Params string `form:"params,optional"` // 额外的参数 } type VerifyTaskResultResp struct { Finish bool `json:"finish"` // 是否完成 }