package logic type UserLoginReq struct { Fromid int `json:"fromid"` Sharetype int `json:"sharetype"` Gameid string `json:"gameid"` Channel string `json:"channel"` } type UserLoginData struct { Walletgold int `json:"walletgold"` Leftredbagcnt int `json:"leftredbagcnt"` } type UserLoginResp struct { Code int `json:"code"` Message string `json:"message"` Data UserLoginData `json:"data"` } //////////////////////////////////////////////////////////////////////////////////////// type GetCashListResp struct { Code string `json:"code"` Msg string `json:"msg"` Data []WithDrawRecord `json:"data"` } //提现记录结构 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 WithDrawDesc struct { Cid int `json:"cid"` Cnum float32 `json:"cnum"` Isnew int `json:"isnew"` Limitlv int `json:"limitlv"` Preisfind int `json:"preisfind"` Day int `json:"day"` } type WithDrawDescs []WithDrawDesc func (v WithDrawDescs) Len() int { return len(v) } func (v WithDrawDescs) Swap(i, j int) { v[i], v[j] = v[j], v[i] } func (v WithDrawDescs) Less(i, j int) bool { return v[i].Cid < v[j].Cid } type WithDrawInfo struct { Cashdata WithDrawDescs `json:"cashdata"` SpecialCashdata WithDrawDescs `json:"specialcashdata"` } //玩家数据 type UserData struct { Userid int //玩家id Lv int //玩家当前等级 LvRewardGet int //当前等级奖励是否已经领取 1未领取 2普通领取 3双倍领取 Exp 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 //当天提现次数 WithDraw WithDrawInfo //提现记录信息 } //---------------------------------------------------------------------------------------------------------------------- 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"` }