From 5c748ac886a91320ba67ebe21b2ba0d98e1f7812 Mon Sep 17 00:00:00 2001 From: Akiba Date: Thu, 20 Jan 2022 09:53:38 +0800 Subject: [PATCH] =?UTF-8?q?:label:=20=E6=B7=BB=E5=8A=A0=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=9A=84struct?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- message/utils.go | 79 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/message/utils.go b/message/utils.go index 2f6953b..4124473 100644 --- a/message/utils.go +++ b/message/utils.go @@ -26,3 +26,82 @@ type WidgetBanner struct { } `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 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"` +}