优化结构

This commit is contained in:
Yvan
2026-08-28 00:29:40 +08:00
parent 04ff85116c
commit 03a4131f6e
118 changed files with 758 additions and 834 deletions
+4 -4
View File
@@ -1,17 +1,17 @@
package payment
import "kra/pkg/paymentkit"
import "kra/internal/paymentkit"
func text(values map[string]any, key string) string {
return paymentutil.Text(values, key)
return paymentkit.Text(values, key)
}
func firstAny(values map[string]any, keys ...string) string {
return paymentutil.FirstText(values, keys...)
return paymentkit.FirstText(values, keys...)
}
// configuredInt64 keeps repository-side validation independent from the
// provider adapter package while sharing the canonical payment parser.
func configuredInt64(values map[string]any, key string, fallback int64) int64 {
return paymentutil.ConfiguredInt64(values, key, fallback)
return paymentkit.ConfiguredInt64(values, key, fallback)
}