拆分大型 Repository 文件职责

This commit is contained in:
yml2213
2026-06-10 14:28:16 +08:00
parent 6ae8f0e830
commit 60ff513463
23 changed files with 3977 additions and 3906 deletions
@@ -69,12 +69,12 @@ func TestCannotReusePaymentWithDifferentProvider(t *testing.T) {
// TestPaymentStatusTransitions 测试支付单状态转换
func TestPaymentStatusTransitionsValid(t *testing.T) {
validTransitions := map[string][]string{
"pending": {"paying", "closed"},
"paying": {"paid", "failed", "closed"},
"paid": {"refunding", "refunded"},
"failed": {}, // 终态
"closed": {}, // 终态
"refunded": {}, // 终态
"pending": {"paying", "closed"},
"paying": {"paid", "failed", "closed"},
"paid": {"refunding", "refunded"},
"failed": {}, // 终态
"closed": {}, // 终态
"refunded": {}, // 终态
}
for from, toList := range validTransitions {