pg_apply_for_application_service.go 620 字节
package domain_service

import (
	"fmt"
	coreDomain "github.com/linmadan/egglib-go/core/domain"
	pgTransaction "github.com/linmadan/egglib-go/transaction/pg"
)

type ApplyForApplicationService struct {
	coreDomain.BaseEventPublisher
	transactionContext *pgTransaction.TransactionContext
}

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