mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-05 01:25:58 +08:00
Merge remote-tracking branch 'origin/tuoyun' into tuoyun
This commit is contained in:
@@ -91,6 +91,9 @@ func GetGroupMembersInfo(c *gin.Context) {
|
||||
}
|
||||
|
||||
memberListResp := api.GetGroupMembersInfoResp{CommResp: api.CommResp{ErrCode: RpcResp.ErrCode, ErrMsg: RpcResp.ErrMsg}, Data: RpcResp.MemberList}
|
||||
if len(RpcResp.MemberList) == 0 {
|
||||
memberListResp.Data = []*open_im_sdk.GroupMemberFullInfo{}
|
||||
}
|
||||
log.NewInfo(req.OperationID, "GetGroupMembersInfo api return ", memberListResp)
|
||||
c.JSON(http.StatusOK, memberListResp)
|
||||
}
|
||||
@@ -242,6 +245,9 @@ func GetJoinedGroupList(c *gin.Context) {
|
||||
}
|
||||
|
||||
GroupListResp := api.GetJoinedGroupListResp{CommResp: api.CommResp{ErrCode: RpcResp.ErrCode, ErrMsg: RpcResp.ErrMsg}, GroupInfoList: RpcResp.GroupList}
|
||||
if len(RpcResp.GroupList) == 0 {
|
||||
GroupListResp.GroupInfoList = []*open_im_sdk.GroupInfo{}
|
||||
}
|
||||
c.JSON(http.StatusOK, GroupListResp)
|
||||
log.NewInfo(req.OperationID, "GetJoinedGroupList api return ", GroupListResp)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user