dao.go 705 字节
package factory

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

//func CreateTaskDao(options map[string]interface{}) (*dao.TaskDao, error) {
//	var transactionContext *pg.TransactionContext
//	if value, ok := options["transactionContext"]; ok {
//		transactionContext = value.(*pg.TransactionContext)
//	}
//	return dao.NewTaskDao(transactionContext)
//}

func CreateOrderDao(ctx *transaction.TransactionContext) (*dao.OrderDao, error) {
	return dao.NewOrderDao(ctx)
}

func CreatePartnerInfoDao(ctx *transaction.TransactionContext) (*dao.PartnerInfoDao, error) {
	return dao.NewPartnerInfoDao(ctx)
}