/
utils.go
132 lines (124 loc) · 4.31 KB
/
utils.go
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
package message
// WidgetBanner
// TODO: widget_list的code不定
type WidgetBanner struct {
Timestamp int `json:"timestamp"`
WidgetList struct {
Field1 struct {
Id int `json:"id"`
Title string `json:"title"`
Cover string `json:"cover"`
WebCover string `json:"web_cover"`
TipText string `json:"tip_text"`
TipTextColor string `json:"tip_text_color"`
TipBottomColor string `json:"tip_bottom_color"`
JumpUrl string `json:"jump_url"`
Url string `json:"url"`
StayTime int `json:"stay_time"`
Site int `json:"site"`
PlatformIn []string `json:"platform_in"`
Type int `json:"type"`
BandId int `json:"band_id"`
SubKey string `json:"sub_key"`
SubData string `json:"sub_data"`
IsAdd bool `json:"is_add"`
} `json:"58"`
} `json:"widget_list"`
}
type HotRankChanged struct {
Rank int `json:"rank"`
Trend int `json:"trend"`
Countdown int `json:"countdown"`
Timestamp int `json:"timestamp"`
WebUrl string `json:"web_url"`
LiveUrl string `json:"live_url"`
BlinkUrl string `json:"blink_url"`
LiveLinkUrl string `json:"live_link_url"`
PcLinkUrl string `json:"pc_link_url"`
Icon string `json:"icon"`
AreaName string `json:"area_name"`
RankDesc string `json:"rank_desc"`
}
type HotRankChangedV2 HotRankChanged
type HotRankSettlement struct {
AreaName string `json:"area_name"`
CacheKey string `json:"cache_key"`
DmMsg string `json:"dm_msg"`
Dmscore int `json:"dmscore"`
Face string `json:"face"`
Icon string `json:"icon"`
Rank int `json:"rank"`
Timestamp int `json:"timestamp"`
Uname string `json:"uname"`
Url string `json:"url"`
}
type HotRankSettlementV2 struct {
Rank int `json:"rank"`
Uname string `json:"uname"`
Face string `json:"face"`
Timestamp int `json:"timestamp"`
Icon string `json:"icon"`
AreaName string `json:"area_name"`
Url string `json:"url"`
CacheKey string `json:"cache_key"`
DmMsg string `json:"dm_msg"`
}
type InteractWord struct {
Contribution struct {
Grade int `json:"grade"`
} `json:"contribution"`
Dmscore int `json:"dmscore"`
FansMedal struct {
AnchorRoomid int `json:"anchor_roomid"`
GuardLevel int `json:"guard_level"`
IconId int `json:"icon_id"`
IsLighted int `json:"is_lighted"`
MedalColor int `json:"medal_color"`
MedalColorBorder int `json:"medal_color_border"`
MedalColorEnd int `json:"medal_color_end"`
MedalColorStart int `json:"medal_color_start"`
MedalLevel int `json:"medal_level"`
MedalName string `json:"medal_name"`
Score int `json:"score"`
Special string `json:"special"`
TargetId int `json:"target_id"`
} `json:"fans_medal"`
Identities []int `json:"identities"`
IsSpread int `json:"is_spread"`
MsgType int `json:"msg_type"`
Roomid int `json:"roomid"`
Score int64 `json:"score"`
SpreadDesc string `json:"spread_desc"`
SpreadInfo string `json:"spread_info"`
TailIcon int `json:"tail_icon"`
Timestamp int `json:"timestamp"`
TriggerTime int64 `json:"trigger_time"`
Uid int `json:"uid"`
Uname string `json:"uname"`
UnameColor string `json:"uname_color"`
}
type OnlineRankCount struct {
Count int `json:"count"`
}
type LiveInteractiveGame struct {
Type int `json:"type"`
Uid int `json:"uid"`
Uname string `json:"uname"`
Uface string `json:"uface"`
GiftId int `json:"gift_id"`
GiftName string `json:"gift_name"`
GiftNum int `json:"gift_num"`
Price int `json:"price"`
Paid bool `json:"paid"`
Msg string `json:"msg"`
FansMedalLevel int `json:"fans_medal_level"`
GuardLevel int `json:"guard_level"`
Timestamp int `json:"timestamp"`
AnchorLottery interface{} `json:"anchor_lottery"`
PkInfo interface{} `json:"pk_info"`
AnchorInfo struct {
Uid int `json:"uid"`
Uname string `json:"uname"`
Uface string `json:"uface"`
} `json:"anchor_info"`
}