test-errcode
wangchuxiao 2 years ago
parent e34ad36912
commit 6755303f0a

@ -12,6 +12,7 @@ import (
rpc "Open_IM/pkg/proto/group" rpc "Open_IM/pkg/proto/group"
"Open_IM/pkg/utils" "Open_IM/pkg/utils"
"context" "context"
"google.golang.org/grpc/metadata"
"github.com/golang/protobuf/ptypes/wrappers" "github.com/golang/protobuf/ptypes/wrappers"
"google.golang.org/grpc" "google.golang.org/grpc"
@ -1280,7 +1281,8 @@ func GetGroupAbstractInfo(c *gin.Context) {
return return
} }
client := rpc.NewGroupClient(etcdConn) client := rpc.NewGroupClient(etcdConn)
respPb, err := client.GetGroupAbstractInfo(context.Background(), &rpc.GetGroupAbstractInfoReq{ md := metadata.Pairs("operationID", req.OperationID, "opUserID", opUserID)
respPb, err := client.GetGroupAbstractInfo(metadata.NewOutgoingContext(c, md), &rpc.GetGroupAbstractInfoReq{
GroupID: req.GroupID, GroupID: req.GroupID,
OpUserID: opUserID, OpUserID: opUserID,
OperationID: req.OperationID, OperationID: req.OperationID,

Loading…
Cancel
Save