优化结构
This commit is contained in:
@@ -4,11 +4,10 @@ import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"kra/internal/biz/system"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"kra/internal/biz"
|
||||
|
||||
"github.com/go-pay/gopay"
|
||||
"github.com/go-pay/gopay/douyin"
|
||||
)
|
||||
@@ -16,7 +15,7 @@ import (
|
||||
// The adapters in this package intentionally keep GoPay request/response
|
||||
// models below the data boundary. The business layer only sees PaymentResult.
|
||||
|
||||
func callbackRequest(callback *biz.PaymentCallback) (*http.Request, error) {
|
||||
func callbackRequest(callback *system.PaymentCallback) (*http.Request, error) {
|
||||
request, err := http.NewRequest(http.MethodPost, "http://payment-callback.local", bytes.NewReader(callback.Body))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user