mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 02:58:26 +08:00
superGroup
This commit is contained in:
parent
0b9e6d52b4
commit
110f5e02f4
@ -31,6 +31,12 @@ func (s *groupServer) GetJoinedSuperGroupList(ctx context.Context, req *pbGroup.
|
|||||||
if err := utils.CopyStructFields(groupInfo, groupInfoDB); err != nil {
|
if err := utils.CopyStructFields(groupInfo, groupInfoDB); err != nil {
|
||||||
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), err.Error())
|
||||||
}
|
}
|
||||||
|
group, err := db.DB.GetSuperGroup(groupID)
|
||||||
|
if err != nil {
|
||||||
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetSuperGroup failed", groupID, err.Error())
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
groupInfo.MemberCount = uint32(len(group.MemberIDList))
|
||||||
resp.GroupList = append(resp.GroupList, groupInfo)
|
resp.GroupList = append(resp.GroupList, groupInfo)
|
||||||
}
|
}
|
||||||
log.NewError(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp.String())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp.String())
|
||||||
|
@ -3,10 +3,10 @@ package msg
|
|||||||
import (
|
import (
|
||||||
"Open_IM/pkg/common/constant"
|
"Open_IM/pkg/common/constant"
|
||||||
"Open_IM/pkg/common/log"
|
"Open_IM/pkg/common/log"
|
||||||
sdk "Open_IM/pkg/proto/sdk_ws"
|
//sdk "Open_IM/pkg/proto/sdk_ws"
|
||||||
"Open_IM/pkg/utils"
|
"Open_IM/pkg/utils"
|
||||||
"github.com/golang/protobuf/jsonpb"
|
//"github.com/golang/protobuf/jsonpb"
|
||||||
"github.com/golang/protobuf/proto"
|
//"github.com/golang/protobuf/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
func SuperGroupNotification(operationID, sendID, recvID string) {
|
func SuperGroupNotification(operationID, sendID, recvID string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user