pg_shipping_goods_service.go 759 字节
package domainService

import (
	"fmt"
	coreDomain "github.com/linmadan/egglib-go/core/domain"
	"gitlab.fjmaimaimai.com/mmm-go-pp/partner01/pkg/domain"

	pgTransaction "github.com/linmadan/egglib-go/transaction/pg"
)

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

func (service *ShippingGoodsService) Shipping(orderId int64) (*domain.Order, error) {
	return nil, nil
}

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