Skip to content

Commit

Permalink
feat: 获取群聊列表支持获取创建时间和备注
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Oct 7, 2024
1 parent 9e991be commit 9f9cfb8
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 10 deletions.
10 changes: 6 additions & 4 deletions client/packets/oidb/fetch_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ func ParseFetchGroupsResp(data []byte) ([]*entity.Group, error) {
groups := make([]*entity.Group, len(resp.Groups))
for i, group := range resp.Groups {
groups[i] = &entity.Group{
GroupUin: group.GroupUin,
GroupName: group.Info.GroupName,
MemberCount: group.Info.MemberCount,
MaxMember: group.Info.MemberMax,
GroupUin: group.GroupUin,
GroupName: group.Info.GroupName,
MemberCount: group.Info.MemberCount,
MaxMember: group.Info.MemberMax,
GroupCreateTime: group.Info.CreateTimeStamp,
GroupMemo: group.ExtInfo.GroupMemo,
}
}
return groups, nil
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 14 additions & 5 deletions client/packets/pb/service/oidb/OidbSvcTrpcTcp0xFE5_2.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions client/packets/pb/service/oidb/OidbSvcTrpcTcp0xFE5_2.proto
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ message OidbSvcTrpcTcp0xFE5_2Response {
message OidbSvcTrpcTcp0xFE5_2Group {
uint32 GroupUin = 3;
OidbSvcTrpcTcp0xFE5_2GroupInfo Info = 4;
ExtGroupInfo ExtInfo = 5;
}

message OidbSvcTrpcTcp0xFE5_2GroupInfo {
OidbSvcTrpcTcp0xFE5_2Member GroupOwner = 1;
uint32 CreateTimeStamp = 2;
uint32 MemberMax = 3;
uint32 MemberCount = 4;
string GroupName = 5;
Expand All @@ -85,3 +87,9 @@ message OidbSvcTrpcTcp0xFE5_2GroupInfo {
message OidbSvcTrpcTcp0xFE5_2Member {
string Uid = 2;
}

message ExtGroupInfo {
uint32 LastMsgTimeStamp = 1;
string GroupMemo = 3;
uint32 ShutupTimestampMe = 4;
}

0 comments on commit 9f9cfb8

Please sign in to comment.