pg_cancel_order_service.go
747 字节
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 CancelOrderService struct {
coreDomain.BaseEventPublisher
transactionContext *pgTransaction.TransactionContext
}
func (service *CancelOrderService) Cancel(orderId int64) (*domain.Order, error) {
return nil, nil
}
func NewCancelOrderService(transactionContext *pgTransaction.TransactionContext) (*CancelOrderService, error) {
if transactionContext == nil {
return nil, fmt.Errorf("transactionContext参数不能为nil")
} else {
return &CancelOrderService{
transactionContext: transactionContext,
}, nil
}
}