transaction.go
447 字节
package factory
import (
"github.com/linmadan/egglib-go/core/application"
"gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/infrastructure/pg"
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
return pG.NewPGTransactionContext(pg.DB), nil
}