datadef.go
2.43 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
package logic
type UserLoginReq struct {
Fromid int `json:"fromid"`
Sharetype int `json:"sharetype"`
}
type UserLoginData struct {
Walletgold int `json:"walletgold"`
Leftads int `json:"leftads"`
Guangold int `json:"guangold"`
}
type UserLoginResp struct {
Code int `json:"code"`
Message string `json:"message"`
Data UserLoginData `json:"data"`
}
type WatchadsData struct {
Leftads int `json:"leftads"`
}
type WatchadsResp struct {
Code int `json:"code"`
Message string `json:"message"`
Data WatchadsData `json:"data"`
}
type QueryguaninfoData struct {
Leftcnt int `json:"leftcnt"`
Totalcnt int `json:"totalcnt"`
Guangold int `json:"guangold"`
Minget int `json:"minget"`
Maxget int `json:"maxget"`
Loginday int `json:"loginday"`
}
type QueryguaninfoResp struct {
Code int `json:"code"`
Message string `json:"message"`
Data QueryguaninfoData `json:"data"`
}
type GetguangoldReq struct {
Goldnum int `json:"goldnum"`
}
type GetguangoldData struct {
Guangold int `json:"guangold"`
}
type GetguangoldResp struct {
Code int `json:"code"`
Message string `json:"message"`
Data GetguangoldData `json:"data"`
}
type DrawguangoldReq struct {
Goldnum int `json:"goldnum"`
Gameid string `json:"gameid"`
Channel string `json:"channel"`
}
type DrawguangoldData struct {
Guangold int `json:"guangold"`
Wallgold int `json:"wallgold"`
}
type DrawguangoldResp struct {
Code int `json:"code"`
Message string `json:"message"`
Data DrawguangoldData `json:"data"`
}
//**********************************************************************************************************
type TaskInfo struct {
}
type AchieveMentInfo struct {
}
//玩家数据
type UserData struct {
Userid int //玩家id
Lv int //玩家当前等级
Exp int //玩家当前经验值
GuanGold int //玩家存钱罐中金币数量
RealGold int //玩家实际金币数量(可用于提现的)
WatchAddsTime int //当天观看激励视频次数
LastLoginTime int //上次登陆时间
ContinueLoginDay int //连续登录天数
GetFromGuanCnt int //当天从存钱款提取金币次数
Task TaskInfo //玩家任务完成相关信息
Achieve AchieveMentInfo //玩家成就完成相关数据
}