pg_company_dao.go 467 字节
package dao

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

type CompanyDao struct {
	transactionContext *transaction.TransactionContext
}

func NewCompanyDao(transactionContext *transaction.TransactionContext) (*CompanyDao, error) {
	if transactionContext == nil {
		return nil, fmt.Errorf("transactionContext参数不能为nil")
	} else {
		return &CompanyDao{
			transactionContext: transactionContext,
		}, nil
	}
}