datadef.go
2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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 //当天零点时间戳,用于判断跨天
}