package logic //"101":"免费任务升级", //"102":"任务", //"103":"免费红包", //"104":"付费任务升级", //"105":"存钱罐", //"106":"付费红包", //"107":"签到罐" type UserLoginReq struct { } type UserLoginData struct { Isnew int `json:"isnew"` Walletgold int `json:"walletgold"` Guangold int `json:"guangold"` PlayerData string `json:"playerData"` Offlinegold int `json:"offlinegold"` } type UserLoginResp struct { Code int `json:"code"` Message string `json:"message"` Data UserLoginData `json:"data"` } type UploaduserbasicinfoReq struct { Nickname string `json:"nickname"` Headurl string `json:"headurl"` } type UploaduserbasicinfoData struct { Isnew int `json:"isnew"` Walletgold int `json:"walletgold"` Guangold int `json:"guangold"` PlayerData string `json:"playerData"` } type UploaduserbasicinfoResp struct { Code int `json:"code"` Message string `json:"message"` Data UploaduserbasicinfoData `json:"data"` } type UpdatedataReq struct { PlayerData string `json:"playerData"` } type UpdatedataData struct { } type UpdatedataResp struct { Code int `json:"code"` Message string `json:"message"` Data UpdatedataData `json:"data"` } type SyncuserdataData struct { Walletgold int `json:"walletgold"` Guangold int `json:"guangold"` Sumloginday int `json:"sumloginday"` Nowtime int `json:"nowtime"` Luckbaglefttime int `json:"luckbaglefttime"` Leftfreeticket int `json:"leftfreeticket"` Leftticket int `json:"leftticket"` } type SyncuserdataResp struct { Code int `json:"code"` Message string `json:"message"` Data SyncuserdataData `json:"data"` } type GetuserdataReq struct { Gameid string `json:"gameid"` Channel string `json:"channel"` } type GetuserdataData struct { Walletgold int `json:"walletgold"` Leftredbagcnt int `json:"leftredbagcnt"` Guangold int `json:"guangold"` Userlv int `json:"userlv"` Userexp int `json:"userexp"` Leftfreeredbag int `json:"leftfreeredbag"` Sumloginday int `json:"sumloginday"` } type GetuserdataResp struct { Code int `json:"code"` Message string `json:"message"` Data GetuserdataData `json:"data"` } type WatchadsData struct { Leftads int `json:"leftads"` } type WatchadsResp struct { Code int `json:"code"` Message string `json:"message"` Data WatchadsData `json:"data"` } type QueryguaninfoData struct { Leftcnt int `json:"leftcnt"` Totalcnt int `json:"totalcnt"` Guangold int `json:"guangold"` Minget int `json:"minget"` Maxget int `json:"maxget"` Loginday int `json:"loginday"` Totalfetchcnt int `json:"totalfetchcnt"` } type QueryguaninfoResp struct { Code int `json:"code"` Message string `json:"message"` Data QueryguaninfoData `json:"data"` } type GetguangoldReq struct { Goldnum int `json:"goldnum"` } type GetguangoldData struct { Guangold int `json:"guangold"` } type GetguangoldResp struct { Code int `json:"code"` Message string `json:"message"` Data GetguangoldData `json:"data"` } type DrawguangoldReq struct { Goldnum int `json:"goldnum"` } type DrawguangoldData struct { Guangold int `json:"guangold"` Wallgold int `json:"wallgold"` //Totalfetchcnt int `json:"totalfetchcnt"` } type DrawguangoldResp struct { Code int `json:"code"` Message string `json:"message"` Data DrawguangoldData `json:"data"` } type FetchfenredbagReq struct { Id int `json:"id"` Ftype int `json:"ftype"` } type FetchfenredbagData struct { Wallgold int `json:"wallgold"` Getgoldnum int `json:"getgoldnum"` } type FetchfenredbagResp struct { Code int `json:"code"` Message string `json:"message"` Data FetchfenredbagData `json:"data"` } type FetchluckybagData struct { Wallgold int `json:"wallgold"` Lefttimes int `json:"lefttimes"` Getgoldnum int `json:"getgoldnum"` } type FetchluckybagResp struct { Code int `json:"code"` Message string `json:"message"` Data FetchluckybagData `json:"data"` } type QuersigndataData struct { Curday int `json:"curday"` Issigntaday int `json:"issigntaday"` } type QuersigndataResp struct { Code int `json:"code"` Message string `json:"message"` Data QuersigndataData `json:"data"` } type FetchoffliengoldData struct { Walletgold int `json:"walletgold"` Getgold int `json:"getgold"` } type FetchoffliengoldResp struct { Code int `json:"code"` Message string `json:"message"` Data FetchoffliengoldData `json:"data"` } type DosignData struct { Curday int `json:"curday"` Issigntaday int `json:"issigntaday"` Walletgold int `json:"walletgold"` } type DosignReq struct { Ftype int `json:"ftype"` } type DosignResp struct { Code int `json:"code"` Message string `json:"message"` Data DosignData `json:"data"` } type QuerdrawinfoResp struct { Code int `json:"code"` Message string `json:"message"` Data WithDrawInfo `json:"data"` } type UploadhigestscoreReq struct { Score int64 `json:"score"` } type UploadhigestscoreData struct { } type UploadhigestscoreResp struct { Code int `json:"code"` Message string `json:"message"` Data UploadhigestscoreData `json:"data"` } type Queryrankinfolist struct { Rank int `json:"rank"` Nickname string `json:"nickname"` Headurl string `json:"headurl"` Socre int64 `json:"socre"` UniqueId string `json:"uniqueId"` } type QueryrankinfoData struct { Selfrank int `json:"selfrank"` Selfsocre int64 `json:"selfsocre"` Ranklist []Queryrankinfolist `json:"ranklist"` } type QueryrankinfoResp struct { Code int `json:"code"` Message string `json:"message"` Data QueryrankinfoData `json:"data"` } type QuerydrawrewardData struct { Getgold int `json:"getgold"` Walletgold int `json:"walletgold"` Rewardid int `json:"rewardid"` Leftfreeticket int `json:"leftfreeticket"` Leftticket int `json:"leftticket"` } type QuerydrawrewardResp struct { Code int `json:"code"` Message string `json:"message"` Data QuerydrawrewardData `json:"data"` } type QuerygetcashinfoData struct { Logindaysum int `json:"logindaysum"` Logindaycontinue int `json:"logindaycontinue"` Cashdata []WithDrawDesc `json:"cashdata"` } type QuerygetcashinfoResp struct { Code int `json:"code"` Message string `json:"message"` Data QuerygetcashinfoData `json:"data"` } type GetcashReq struct { Money float32 `json:"money"` Openid string `json:"openid"` Ver string `json:"ver"` } type CommReq struct { Gameid string `json:"gameid"` Channel string `json:"channel"` } type GetcashData struct { Walletgold int `json:"walletgold"` } type GetcashResp struct { Code int `json:"code"` Message string `json:"message"` Data GetcashData `json:"data"` } type GetcashrecordReq struct { Gameid string `json:"gameid"` Channel string `json:"channel"` } type GetcashrecordResp struct { Code int `json:"code"` Message string `json:"message"` Data WithDrawList `json:"data"` } type OnlinentfResp struct { Code int `json:"code"` Message string `json:"message"` } type UpdatetaskReq struct { Tasktype int `json:"tasktype"` Value int `json:"value"` } type UpdatetaskResp struct { Code int `json:"code"` Message string `json:"message"` } type QuerytaskinfoReq struct { Tasktype int `json:"tasktype"` } type QuerytaskinfoResp struct { Code int `json:"code"` Message string `json:"message"` Data TaskList `json:"data"` } type GettaskrewardReq struct { Tasktype int `json:"tasktype"` Taskid int `json:"taskid"` } type GettaskrewardData struct { Goldnum int `json:"goldnum"` Walletgold int `json:"walletgold"` } type GettaskrewardResp struct { Code int `json:"code"` Message string `json:"message"` Data GettaskrewardData `json:"data"` } type GetnewlevelrewardReq struct { Rewardtype int `json:"rewardtype"` Gameid string `json:"gameid"` Channel string `json:"channel"` } type GetnewlevelrewardData struct { Goldnum int `json:"goldnum"` } type GetnewlevelrewardResp struct { Code int `json:"code"` Message string `json:"message"` Data GetnewlevelrewardData `json:"data"` } type QuerysigndataData struct { Signround int `json:"signround"` Continuessign int `json:"continuessign"` IssignToday int `json:"issignToday"` } type QueryReadGoldData struct { Goldnum int `json:"goldnum"` } type QueryReadGoldResp struct { Code int `json:"code"` Message string `json:"message"` Data QueryReadGoldData `json:"data"` } type FetchreadgoldData struct { Curgoldnum int `json:"curgoldnum"` Getgoldnum int `json:"getgoldnum"` } type FetchreadgoldResp struct { Code int `json:"code"` Message string `json:"message"` Data FetchreadgoldData `json:"data"` } type QuerysigndataResp struct { Code int `json:"code"` Message string `json:"message"` Data QuerysigndataData `json:"data"` } type UsersignReq struct { Gameid string `json:"gameid"` Channel string `json:"channel"` } type UsersignData struct { Goldnum int `json:"goldnum"` } type UsersignResp struct { Code int `json:"code"` Message string `json:"message"` Data UsersignData `json:"data"` } type ReadNumUploadReq struct { Uid string `json:"uid"` Readnum int `json:"readnum"` //Gameid string `json:"gameid"` //Channel string `json:"channel"` } type ReadNumUploadResp struct { Code int `json:"code"` Message string `json:"message"` Timestamp int `json:"timestamp"` } //********************************************************************************************************** type TaskListDesc struct { Taskid int `json:"taskid"` Taskstatus int `json:"taskstatus"` Taskprogress int `json:"taskprogress"` } type TaskList struct { Taskdata []TaskListDesc `json:"taskdata"` Huoyue int `json:"huoyue"` } //其中提取次数和当日登陆在userdata中记录 type TaskInfo struct { OnlineMin int //在线分钟数 CostTili int //在游戏内消耗体力 OutScore int //单局超过2000分次数 WatchAdCnt int //观看视频次数 DrawTurnTableCnt int //转盘抽奖次数 OpenLuckBagCnt int //开福袋次数 UseRocketCnt int //开火箭次数 RelivegCnt int //重生次数 UseItemCnt int //使用道具次数 HuoYue int //当天活跃值 } // type AchieveMentInfo struct { WatchAdsCnt int //观看视频数 KillStar int //消除行数 KillStarLie int //消除列数 SumGetScore int64 //累计获得分数 //SumGetGuan int //存钱罐累计提取 //SumUseItemCnt int //使用道具次数累计 } type WithDrawList struct { Withdata []WithDrawRecord `json:"withdata"` } //提现记录结构 type WithDrawRecord struct { Coin int `json:"coin"` Create_time int `json:"create_time"` Money int `json:"money"` No string `json:"no"` Status int `json:"status"` Statusmsg string `json:"statusmsg"` Typ int `json:"typ"` } type WithDrawInfo struct { Cashdata []WithDrawDesc `json:"cashdata"` } type WithDrawDesc struct { Cid int `json:"cid"` Cnum float32 `json:"cnum"` Isnew int `json:"isnew"` Preisfind int `json:"preisfind"` Day int `json:"day"` } //玩家数据 type UserData struct { Userid string //玩家w唯一id Lv int //玩家当前等级 LvRewardGet int //当前等级奖励是否已经领取 1未领取 2普通领取 3双倍领取 Exp int //玩家当前经验值 NickName string //昵称 HeadUrl string //头像 RegTime int //注册时间 GuanGold int //玩家存钱罐中金币数量 RealGold int //玩家实际金币数量(可用于提现的) WatchAddsTime int //当天剩余红包次数 初始化50次 LastLoginTime int //上次登陆时间 ContinueLoginDay int //连续登录天数 SumLoginDay int //累计登陆天数 GetFromGuanCnt int //当天从存钱款提取金币次数 SignRound int //签到轮数 SignSum int //累计签到天数 IsSignToday int //今日是否已经签到 1是 0否 LeftFreeRB int //剩余免费红包次数 UpLvCostTime int //上一个等级升级时间 UpLvCostTimeSec int //上一个等级升级的时间点时刻 ReadNum int //玩家微转发阅读量 GetCashCnt int //当天提现次数 RedBagFetchIdlist []int //记录当前以及领取的红包id LuckyBagLeftTimes int //当日福袋剩余次数 LastUpdateTime int //上一次同步时间 OfflineGold int //离线金币数量 HighScore int64 //玩家历史最高分 FreeTicket int //免费抽奖次数 Ticket int //看视频抽奖次数 WithDraw WithDrawInfo //提现记录信息 Task TaskInfo //玩家任务完成相关信息 Achieve AchieveMentInfo //玩家成就完成相关数据 } //---------------------------------------------------------------------------------------------------------------------- type TixianDesc struct { Sign string `json:"sign"` Sign_type string `json:"sign_type"` Time_stamp string `json:"time_stamp"` Gameid string `json:"gameid"` Channel string `json:"channel"` Uid int `json:"uid"` Typ int `json:"typ"` Money int `json:"money"` Openid string `json:"openid"` Nickname string `json:"nickname"` Headurl string `json:"headurl"` Editcoin int `json:"editcoin"` Ver string `json:"ver"` Checkcoin int `json:"checkcoin"` } type AddCoinDesc struct { Sign string `json:"sign"` Sign_type string `json:"sign_type"` Time_stamp string `json:"time_stamp"` Gameid string `json:"gameid"` Channel string `json:"channel"` Uid int `json:"uid"` Coin int `json:"coin"` Typ int `json:"typ"` } type AddCoinResultData struct { Mycoin int `json:"mycoin"` } type AddCoinResp struct { Code string `json:"code"` Msg string `json:"msg"` Data AddCoinResultData `json:"data"` } type GetCoinDesc struct { Sign string `json:"sign"` Sign_type string `json:"sign_type"` Time_stamp string `json:"time_stamp"` Gameid string `json:"gameid"` Channel string `json:"channel"` Uid int `json:"uid"` } type GetCashResp struct { Code string `json:"code"` Msg string `json:"msg"` } type GetCashListDesc struct { Sign string `json:"sign"` Sign_type string `json:"sign_type"` Time_stamp string `json:"time_stamp"` Gameid string `json:"gameid"` Channel string `json:"channel"` Uid int `json:"uid"` Start int `json:"start"` Number int `json:"number"` } type GetCashListResp struct { Code string `json:"code"` Msg string `json:"msg"` Data []WithDrawRecord `json:"data"` }