You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: organisation_member_service.go
    path of file: ./repos/convoy/services
    
    the code of the file until where you have to start completion: package services

import (
	"context"
	"errors"
	"net/http"
	"time"

	"github.com/frain-dev/convoy/auth"
	"github.com/frain-dev/convoy/datastore"
	"github.com/frain-dev/convoy/pkg/log"
	"github.com/frain-dev/convoy/util"
	"github.com/oklog/ulid/v2"
)

type OrganisationMemberService struct {
	orgMemberRepo datastore.OrganisationMemberRepository
}

func NewOrganisationMemberService(orgMemberRepo datastore.OrganisationMemberRepository) *OrganisationMemberService {
	return &OrganisationMemberService{orgMemberRepo: orgMemberRepo}
}

func (om *OrganisationMemberService) CreateOrganisationMember(ctx context.Context, org *datastore.Organisation, user *datastore.User, role 
    
func (om *OrganisationMemberService) DeleteOrganisationMember(ctx context.Context, memberID string, org *datastore.Organisation) error {
	member, err := om.orgMemberRepo.FetchOrganisationMemberByID(ctx, memberID, org.UID)
	if err != nil {
		log.FromContext(ctx).WithError(err).Error("failed to find organisation member by id")
		return util.NewServiceError(http.StatusBadRequest, errors.New("failed to find organisation member by id"))
	}

	if member.UserID == org.OwnerID {
		return util.NewServiceError(http.StatusForbidden, errors.New("cannot deactivate organisation owner"))
	}

	err = om.orgMemberRepo.DeleteOrganisationMember(ctx, memberID, org.UID)
	if err != nil {
		log.FromContext(ctx).WithError(err).Error("failed to delete organisation member")
		return util.NewServiceError(http.StatusBadRequest, errors.New("failed to delete organisation member"))
	}
	return err
}