mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-05 03:23:50 +08:00
Merge branch 'master' of https://github.com/Mrs4s/MiraiGo
This commit is contained in:
commit
4537ad68ce
@ -24,6 +24,8 @@ type (
|
|||||||
Name string
|
Name string
|
||||||
Memo string
|
Memo string
|
||||||
OwnerUin int64
|
OwnerUin int64
|
||||||
|
GroupCreateTime uint32
|
||||||
|
GroupLevel uint32
|
||||||
MemberCount uint16
|
MemberCount uint16
|
||||||
MaxMemberCount uint16
|
MaxMemberCount uint16
|
||||||
Members []*GroupMemberInfo
|
Members []*GroupMemberInfo
|
||||||
@ -53,6 +55,7 @@ type (
|
|||||||
GroupSearchInfo struct {
|
GroupSearchInfo struct {
|
||||||
Code int64 // 群号
|
Code int64 // 群号
|
||||||
Name string // 群名
|
Name string // 群名
|
||||||
|
Memo string // 简介
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -211,6 +214,7 @@ func decodeGroupSearchResponse(_ *QQClient, _ *incomingPacketInfo, payload []byt
|
|||||||
ret = append(ret, GroupSearchInfo{
|
ret = append(ret, GroupSearchInfo{
|
||||||
Code: int64(g.GetCode()),
|
Code: int64(g.GetCode()),
|
||||||
Name: g.GetName(),
|
Name: g.GetName(),
|
||||||
|
Memo: g.GetBrief(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return ret, nil
|
return ret, nil
|
||||||
@ -240,6 +244,8 @@ func decodeGroupInfoResponse(c *QQClient, _ *incomingPacketInfo, payload []byte)
|
|||||||
Code: int64(*info.GroupCode),
|
Code: int64(*info.GroupCode),
|
||||||
Name: string(info.GroupInfo.GroupName),
|
Name: string(info.GroupInfo.GroupName),
|
||||||
Memo: string(info.GroupInfo.GroupMemo),
|
Memo: string(info.GroupInfo.GroupMemo),
|
||||||
|
GroupCreateTime: *info.GroupInfo.GroupCreateTime,
|
||||||
|
GroupLevel: *info.GroupInfo.GroupLevel,
|
||||||
OwnerUin: int64(*info.GroupInfo.GroupOwner),
|
OwnerUin: int64(*info.GroupInfo.GroupOwner),
|
||||||
MemberCount: uint16(*info.GroupInfo.GroupMemberNum),
|
MemberCount: uint16(*info.GroupInfo.GroupMemberNum),
|
||||||
MaxMemberCount: uint16(*info.GroupInfo.GroupMemberMaxNum),
|
MaxMemberCount: uint16(*info.GroupInfo.GroupMemberMaxNum),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user