You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB
Go

3 years ago
package msg_handler
// FansMedal 粉丝勋章
// TODO 完善粉丝勋章解析,后边带?的是未知的
type FansMedal struct {
AnchorRoomId int `json:"anchor_roomid"` // 佩戴勋章所指的直播间ID
GuardLevel int `json:"guard_level"` // 舰队等级
IconId int `json:"icon_id"` // 图标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"` // 佩戴勋章所指的主播ID
}
const (
CoinTypeGold = "gold"
CoinTypeSilver = "silver"
)
func IsPaidGift(coinType string) bool {
if coinType == CoinTypeGold {
return true
}
if coinType == CoinTypeSilver {
return false
}
return false
}