datadef.go
3.65 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
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"`
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"`
}
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"`
}
type AddgoldData struct {
Taoalgoldnum int `json:"taoalgoldnum"`
}
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"`
}
type DosignResp struct {
ErrNum int `json:"errNum"`
RetMsg string `json:"retMsg"`
RetData DosignData `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 //当天过关获得的金币
}