|
|
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 ReturnGoodsService struct {
|
|
|
coreDomain.BaseEventPublisher
|
|
|
transactionContext *pgTransaction.TransactionContext
|
|
|
}
|
|
|
|
|
|
func (service *ReceivingGoodsService) Return(orderId int64) (*domain.Order, error) {
|
|
|
return nil, nil
|
|
|
}
|
|
|
|
|
|
func NewReturnGoodsService(transactionContext *pgTransaction.TransactionContext) (*ReturnGoodsService, error) {
|
|
|
if transactionContext == nil {
|
|
|
return nil, fmt.Errorf("transactionContext参数不能为nil")
|
|
|
} else {
|
|
|
return &ReturnGoodsService{
|
|
|
transactionContext: transactionContext,
|
|
|
}, nil
|
|
|
}
|
|
|
} |
...
|
...
|
|