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
@ -19,14 +19,16 @@ import (
|
|||||||
|
|
||||||
type (
|
type (
|
||||||
GroupInfo struct {
|
GroupInfo struct {
|
||||||
Uin int64
|
Uin int64
|
||||||
Code int64
|
Code int64
|
||||||
Name string
|
Name string
|
||||||
Memo string
|
Memo string
|
||||||
OwnerUin int64
|
OwnerUin int64
|
||||||
MemberCount uint16
|
GroupCreateTime uint32
|
||||||
MaxMemberCount uint16
|
GroupLevel uint32
|
||||||
Members []*GroupMemberInfo
|
MemberCount uint16
|
||||||
|
MaxMemberCount uint16
|
||||||
|
Members []*GroupMemberInfo
|
||||||
// 最后一条信息的SEQ,只有通过 GetGroupInfo 函数获取的 GroupInfo 才会有
|
// 最后一条信息的SEQ,只有通过 GetGroupInfo 函数获取的 GroupInfo 才会有
|
||||||
LastMsgSeq int64
|
LastMsgSeq int64
|
||||||
|
|
||||||
@ -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
|
||||||
@ -236,16 +240,18 @@ func decodeGroupInfoResponse(c *QQClient, _ *incomingPacketInfo, payload []byte)
|
|||||||
return nil, errors.New("group info not found")
|
return nil, errors.New("group info not found")
|
||||||
}
|
}
|
||||||
return &GroupInfo{
|
return &GroupInfo{
|
||||||
Uin: int64(*info.GroupInfo.GroupUin),
|
Uin: int64(*info.GroupInfo.GroupUin),
|
||||||
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),
|
||||||
OwnerUin: int64(*info.GroupInfo.GroupOwner),
|
GroupCreateTime: *info.GroupInfo.GroupCreateTime,
|
||||||
MemberCount: uint16(*info.GroupInfo.GroupMemberNum),
|
GroupLevel: *info.GroupInfo.GroupLevel,
|
||||||
MaxMemberCount: uint16(*info.GroupInfo.GroupMemberMaxNum),
|
OwnerUin: int64(*info.GroupInfo.GroupOwner),
|
||||||
Members: []*GroupMemberInfo{},
|
MemberCount: uint16(*info.GroupInfo.GroupMemberNum),
|
||||||
LastMsgSeq: int64(info.GroupInfo.GetGroupCurMsgSeq()),
|
MaxMemberCount: uint16(*info.GroupInfo.GroupMemberMaxNum),
|
||||||
client: c,
|
Members: []*GroupMemberInfo{},
|
||||||
|
LastMsgSeq: int64(info.GroupInfo.GetGroupCurMsgSeq()),
|
||||||
|
client: c,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user