优化结构
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Integrations
|
||||
|
||||
`internal/integration` contains adapters that talk to systems outside the
|
||||
`app/system/internal/integration` contains adapters that talk to systems outside the
|
||||
application process. They may open sockets, create SDK clients, keep reloadable
|
||||
state, or translate provider-specific protocols into `biz` interfaces.
|
||||
|
||||
@@ -16,5 +16,5 @@ lifecycles. Their constructors are exposed through `ProviderSet`; `cmd` binds
|
||||
the `cache.RedisProvider` implementation to the shared `data.Data` container.
|
||||
|
||||
Stateless protocol helpers that do not own clients live in
|
||||
`internal/utils/paymentutil`. They are intentionally small and dependency
|
||||
`pkg/paymentkit`. They are intentionally small and dependency
|
||||
light, while provider adapters remain here.
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"kra/app/system/internal/biz"
|
||||
"kra/app/system/internal/utils/paymentutil"
|
||||
"kra/pkg/paymentkit"
|
||||
|
||||
gopayAlipay "github.com/go-pay/gopay/alipay"
|
||||
gopayDouyin "github.com/go-pay/gopay/douyin"
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"kra/app/system/internal/biz"
|
||||
"kra/app/system/internal/utils/paymentutil"
|
||||
"kra/pkg/paymentkit"
|
||||
|
||||
"github.com/go-pay/gopay"
|
||||
gopayQQ "github.com/go-pay/gopay/qq"
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"kra/app/system/internal/biz"
|
||||
"kra/app/system/internal/utils/paymentutil"
|
||||
"kra/pkg/paymentkit"
|
||||
)
|
||||
|
||||
func callbackFields(callback *biz.PaymentCallback) map[string]string {
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
"time"
|
||||
|
||||
"kra/app/system/internal/biz"
|
||||
"kra/app/system/internal/utils/paymentutil"
|
||||
"kra/pkg/paymentkit"
|
||||
)
|
||||
|
||||
type vendorProfile string
|
||||
|
||||
Reference in New Issue
Block a user