1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00
MiraiGo/client/honor.go
wdvxdr 2e64a6913d
zap: reuse some []byte
优化单线程上传内存使用
2021-04-15 21:36:14 +08:00

40 lines
1.1 KiB
Go

package client
type (
HonorType int
GroupHonorInfo struct {
GroupCode string `json:"gc"`
Uin string `json:"uin"`
Type HonorType `json:"type"`
TalkativeList []HonorMemberInfo `json:"talkativeList"`
CurrentTalkative CurrentTalkative `json:"currentTalkative"`
ActorList []HonorMemberInfo `json:"actorList"`
LegendList []HonorMemberInfo `json:"legendList"`
StrongNewbieList []HonorMemberInfo `json:"strongnewbieList"`
EmotionList []HonorMemberInfo `json:"emotionList"`
}
HonorMemberInfo struct {
Uin int64 `json:"uin"`
Avatar string `json:"avatar"`
Name string `json:"name"`
Desc string `json:"desc"`
}
CurrentTalkative struct {
Uin int64 `json:"uin"`
DayCount int32 `json:"day_count"`
Avatar string `json:"avatar"`
Name string `json:"nick"`
}
)
const (
Talkative HonorType = 1 // 龙王
Performer HonorType = 2 // 群聊之火
Legend HonorType = 3 // 群聊炙焰
StrongNewbie HonorType = 5 // 冒尖小春笋
Emotion HonorType = 6 // 快乐源泉
)