transaction.go
336 字节
package factory
import (
"gitlab.fjmaimaimai.com/mmm-go/godevp/pkg/infrastructure/pg"
"gitlab.fjmaimaimai.com/mmm-go/godevp/pkg/infrastructure/pg/transaction"
)
func CreateTransactionContext(options map[string]interface{}) (*transaction.TransactionContext, error) {
return &transaction.TransactionContext{
PgDd: pg.DB,
}, nil
}