Commit 17ea2d8cff57b59545a85b44bdfe3c2079bc6d0d
1 parent
b6622d44
Exists in
master
提交
Showing
1 changed file
with
18 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/datadef.go
... | ... | @@ -203,3 +203,21 @@ type UserData struct { |
203 | 203 | PlayerData string //玩家数据 |
204 | 204 | RegTime int //注册时间 |
205 | 205 | } |
206 | + | |
207 | +//------------------------------------------------------- | |
208 | +type PlayerData struct { | |
209 | + Id int `json:"id"` | |
210 | + CarArr []int `json:"carArr"` | |
211 | + Gold int `json:"gold"` | |
212 | + LastLoginTimestamp float32 `json:"lastLoginTimestamp"` | |
213 | + AllGold int `json:"allGold"` | |
214 | + ShopBuyNums int `json:"shopBuyNums"` | |
215 | + SevenDayNoteData string `json:"sevenDayNoteData"` | |
216 | + CarMaxLevel int `json:"carMaxLevel"` | |
217 | + CurLevel int `json:"curLevel"` | |
218 | + LoginDate string `json:"loginDate"` | |
219 | + CreateCarID int `json:"createCarID"` | |
220 | + KillCount int `json:"killCount"` | |
221 | + HeadShot int `json:"headShot"` | |
222 | + OnLineGold int `json:"onLineGold"` | |
223 | +} | ... | ... |