package logic type AddcointotoutiaoReq struct { Access_token string `json:"access_token"` Open_id string `json:"open_id"` //Device_id int `json:"device_id"` Amount int `json:"amount"` Description string `json:"description"` Bonus_type string `json:"bonus_type"` GlobalID int64 `json:"global_id"` } type AddcointotoutiaoResp struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` Data int `json:"data"` Extra_ADD int `json:"gold_coin_extra_add"` } type GetAccessTokenResp struct { Access_token string `json:"access_token"` Expires_in int `json:"expires_in"` Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` } type GetOpenidResp struct { Session_key string `json:"session_key"` Openid string `json:"openid"` Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` } type GetGlobalIDResp struct { GlobalID int64 `json:"global_id"` Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` } //-------------------------------------------------------------------------- type GetcurpropertyReq struct { Openid string `json:"openid"` Device_id int `json:"device_id"` } type GetcurpropertyData struct { Protery int64 `json:"protery"` Speed int64 `json:"speed"` Curlevle int64 `json:"curlevle"` Leftcnt int `json:"leftcnt"` Curgold int `json:"curgold"` } type GetcurpropertyResp struct { ErrNum int `json:"errNum"` RetMsg string `json:"retMsg"` RetData GetcurpropertyData `json:"retData"` } type FetchproteryboxReq struct { Openid string `json:"openid"` Device_id int `json:"device_id"` } type FetchproteryboxData struct { Goldnum int `json:"goldnum"` Sumgold int `json:"sumgold"` Curlevle int64 `json:"curlevle"` Leftcnt int `json:"leftcnt"` Curpoerty int64 `json:"curpoerty"` ExtraGold int `json:"extragold"` } type FetchproteryboxResp struct { ErrNum int `json:"errNum"` RetMsg string `json:"retMsg"` RetData FetchproteryboxData `json:"retData"` } type UploadgunlvReq struct { Openid string `json:"openid"` Maxlevel int `json:"maxlevel"` } type UploadgunlvData struct { Speed int64 `json:"speed"` } type UploadgunlvResp struct { ErrNum int `json:"errNum"` RetMsg string `json:"retMsg"` RetData UploadgunlvData `json:"retData"` } type AddgoldReq struct { Openid string `json:"openid"` Device_id int `json:"device_id"` Gold_num int `json:"gold_num"` Gold_Type int `json:"gold_type"` } type AddgoldData struct { Taoalgoldnum int `json:"taoalgoldnum"` Rewardgold int `json:"rewardgold"` ExtraGold int `json:"extragold"` } type AddgoldResp struct { ErrNum int `json:"errNum"` RetMsg string `json:"retMsg"` RetData AddgoldData `json:"retData"` } type QuersigndataReq struct { Openid string `json:"openid"` } type QuersigndataData struct { Curround int `json:"curround"` Curday int `json:"curday"` Issigntaday int `json:"issigntaday"` } type QuersigndataResp struct { ErrNum int `json:"errNum"` RetMsg string `json:"retMsg"` RetData QuersigndataData `json:"retData"` } type DosignReq struct { Openid string `json:"openid"` Device_id int `json:"device_id"` } type DosignData struct { Curround int `json:"curround"` Curday int `json:"curday"` Issigntaday int `json:"issigntaday"` Taoalgoldnum int `json:"taoalgoldnum"` ExtraGold int `json:"extragold"` } type DosignResp struct { ErrNum int `json:"errNum"` RetMsg string `json:"retMsg"` RetData DosignData `json:"retData"` } type GetopenidReq struct { Code string `json:"code"` } type GetopenidData struct { Openid string `json:"openid"` } type GetopenidResp struct { ErrNum int `json:"errNum"` RetMsg string `json:"retMsg"` RetData GetopenidData `json:"retData"` } type UserloginReq struct { Openid string `json:"openid"` IsVisiter int `json:"isVisiter"` //VisitorId int `json:"visitorId"` } type UserloginData struct { IsNew int `json:"isNew"` RegisterTime int `json:"registerTime"` Id string `json:"id"` PlayerData string `json:"playerData"` Curround int `json:"curround"` Curday int `json:"curday"` Issigntaday int `json:"issigntaday"` } type UserloginResp struct { ErrNum int `json:"errNum"` RetMsg string `json:"retMsg"` RetData UserloginData `json:"retData"` } type UpdatedataReq struct { Openid string `json:"openid"` PlayerData string `json:"playerData"` } type UpdatedataResp struct { ErrNum int `json:"errNum"` RetMsg string `json:"retMsg"` } type GetStampTimeData struct { Stamp int `json:"stamp"` } type GetStampTimeResp struct { ErrNum int `json:"errNum"` RetMsg string `json:"retMsg"` RetData GetStampTimeData `json:"retData"` } //------------------------------------------------------------------------------------------------------ type UserData struct { Openid string LastGetTime int //上一次请求物资时间戳,如果超过三次时间间隔则不计算收益 LeftCnt int //当天剩余领取宝箱次数 MaxLevel int //当前最高枪等级 Property int64 //当前物资 TotalFetchCnt int //累计领取次数 SignRound int //签到轮数 SingDay int //签到天数 IsSign int //当天是否已经签到 TodaySec int //当天零点时间戳,用于判断跨天 PassLvGold int //当天过关获得的金币 PlayerData string //玩家数据 RegTime int //注册时间 } //------------------------------------------------------- type PlayerData struct { Id int `json:"id"` CarArr []int `json:"carArr"` Gold int `json:"gold"` LastLoginTimestamp float32 `json:"lastLoginTimestamp"` AllGold int `json:"allGold"` ShopBuyNums int `json:"shopBuyNums"` SevenDayNoteData string `json:"sevenDayNoteData"` CarMaxLevel int `json:"carMaxLevel"` CurLevel int `json:"curLevel"` LoginDate string `json:"loginDate"` CreateCarID int `json:"createCarID"` KillCount int `json:"killCount"` HeadShot int `json:"headShot"` OnLineGold int `json:"onLineGold"` } type GetToutiaoGrowthRightResp struct { StatusCode int `json:"status_code"` Message string `json:"message"` ServerTime int `json:"server_time"` Data GetToutiaoGrowthRightDataResp `json:"data"` } type GetToutiaoGrowthRightDataResp struct { GrowthType int `json:"growth_type"` GrowthLv int `json:"growth_lv"` CoinBuff int `json:"coin_buff"` SpeedBuff int `json:"speed_buff"` RewardStatus int `json:"reward_status"` } type GetGrowthRightResp struct { ErrNum int `json:"errNum"` RetMsg string `json:"retMsg"` RetData GetToutiaoGrowthRightDataResp `json:"retData"` } type GetGrowthRightReq struct { Openid string `json:"openid"` Device_id int `json:"device_id"` }