|
|
|
@ -194,9 +194,6 @@ func (d *DataBase) InsertGroupMember(ctx context.Context, groupMember *model_str |
|
|
|
|
func (d *DataBase) BatchInsertGroupMember(ctx context.Context, groupMemberList []*model_struct.LocalGroupMember) error { |
|
|
|
|
d.groupMtx.Lock() |
|
|
|
|
defer d.groupMtx.Unlock() |
|
|
|
|
if groupMemberList == nil { |
|
|
|
|
return errors.New("nil") |
|
|
|
|
} |
|
|
|
|
return errs.WrapMsg(d.conn.WithContext(ctx).Create(groupMemberList).Error, "BatchInsertMessageList failed") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|