transaction.go 391 字节
package factory

import (
	"github.com/linmadan/egglib-go/core/application"
	"gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/infrastructure/pg"
	"gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/infrastructure/pg/transaction"
)

func CreateTransactionContext(options map[string]interface{}) (application.TransactionContext, error) {
	return &transaction.TransactionContext{
		PgDd: pg.DB,
	}, nil
}