dao.go
471 字节
package factory
import (
"github.com/linmadan/egglib-go/transaction/pg"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-basic/pkg/infrastructure/dao"
)
func CreateNoticePersonalDao(options map[string]interface{}) (*dao.NoticePersonalDao, error) {
var transactionContext *pg.TransactionContext
if value, ok := options["transactionContext"]; ok {
transactionContext = value.(*pg.TransactionContext)
}
return dao.NewNoticePersonalDao(transactionContext)
}