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"` } type AddcointotoutiaoResp struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` Data int `json:"data"` } type GetAccessTokenResp struct { Access_token string `json:"access_token"` Expires_in string `json:"expires_in"` Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` } //-------------------------------------------------------------------------- type GetcurpropertyReq struct { Openid string `json:"openid"` } type GetcurpropertyData struct { Protery int64 `json:"protery"` Speed int64 `json:"speed"` Curlevle int64 `json:"curlevle"` Leftcnt int `json:"leftcnt"` } 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"` } type FetchproteryboxResp struct { ErrNum int `json:"errNum"` RetMsg string `json:"retMsg"` RetData FetchproteryboxData `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 //当天零点时间戳,用于判断跨天 }