|
|
|
@ -94,8 +94,10 @@ func (s *groupServer) CreateGroup(ctx context.Context, req *pbGroup.CreateGroupR
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//to group member
|
|
|
|
|
groupMemberTmp := imdb.GroupMember{GroupID: groupId, RoleLevel: constant.GroupOwner}
|
|
|
|
|
utils.CopyStructFields(&groupMemberTmp, us)
|
|
|
|
|
groupMember := imdb.GroupMember{GroupID: groupId, RoleLevel: constant.GroupOwner}
|
|
|
|
|
utils.CopyStructFields(&groupMember, us)
|
|
|
|
|
groupMember = groupMemberTmp
|
|
|
|
|
err = im_mysql_model.InsertIntoGroupMember(groupMember)
|
|
|
|
|
if err != nil {
|
|
|
|
|
log.NewError(req.OperationID, "InsertIntoGroupMember failed ", err.Error(), groupMember)
|
|
|
|
|