transaction.go 338 字节
package factory

import (
	"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/pg"
	"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/pg/transaction"
)

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