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: data.go
    path of file: ./repos/dtm/test/busi
    
    the code of the file until where you have to start completion: package busi

import (
	"context"
	"errors"
	"fmt"
	"strings"

	"github.com/dtm-labs/dtm/client/dtmcli"
	"github.com/dtm-labs/dtm/client/dtmcli/dtmimp"
	"github.com/dtm-labs/dtm/dtmutil"
	"github.com/dtm-labs/logger"
	"github.com/gin-gonic/gin"
	"go.mongodb.org/mongo-dri
    
func SagaMongoAdjustBalance(ctx context.Context, mc *mongo.Client, uid int, amount int, result string) error {
	if strings.Contains(result, dtmcli.ResultFailure) {
		return dtmcli.ErrFailure
	}
	_, err := mc.Database("dtm_busi").Collection("user_account").UpdateOne(ctx,
		bson.D{{Key: "user_id", Value: uid}},
		bson.D{{Key: "$inc", Value: bson.D{{Key: "balance", Value: amount}}}})
	logger.Debugf("dtm_busi.user_account $inc balance of %d by %d err: %v", uid, amount, err)
	if err != nil {
		return err
	}
	var res bson.M
	err = mc.Database("dtm_busi").Collection("user_account").FindOne(ctx,
		bson.D{{Key: "user_id", Value: uid}}).Decode(&res)
	if err != nil {
		return err
	}
	balance := res["balance"].(float64)
	if balance < 0 {
		return fmt.Errorf("balance not enough %w", dtmcli.ErrFailure)
	}
	return nil
}