datadef.go
7.54 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
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"`
TaskID int `json:"task_id"`
Extra struct {
TaskKey string `json:"task_key"`
} `json:"extra"`
}
type AddcointotoutiaoResp struct {
Errcode int `json:"errcode"`
Errmsg string `json:"errmsg"`
Data int `json:"data"`
Extra_ADD int `json:"gold_coin_extra_add"`
Extra_Limit bool `json:"gold_coin_extra_limit"`
}
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"`
AppName string `json:"appname"`
}
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"`
ExtraLimit bool `json:"extralimit"`
}
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"`
AppName string `json:"appname"`
}
type AddgoldData struct {
Taoalgoldnum int `json:"taoalgoldnum"`
Rewardgold int `json:"rewardgold"`
ExtraGold int `json:"extragold"`
ExtraLimit bool `json:"extralimit"`
}
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"`
AppName string `json:"appname"`
}
type DosignData struct {
Curround int `json:"curround"`
Curday int `json:"curday"`
Issigntaday int `json:"issigntaday"`
Taoalgoldnum int `json:"taoalgoldnum"`
ExtraGold int `json:"extragold"`
ExtraLimit bool `json:"extralimit"`
}
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"`
}