feat(v2): order 补 biz_code + webhook payload 带 product_biz_code(收口 P2 延后项)

This commit is contained in:
wangjia
2026-07-10 14:12:44 +08:00
parent c06f6d3a3c
commit 7a27a6223a
5 changed files with 53 additions and 11 deletions
+2 -1
View File
@@ -47,6 +47,7 @@ type OrderV2 struct {
BizSystem string `gorm:"index;size:32"` // 接入方(pangolin/jiu),空=独立收款
BizRef string `gorm:"size:128"` // 接入方业务单号,回调原样带回
ProductID uint64 `gorm:"index"`
BizCode string `gorm:"index;size:64"` // 套餐码副本(下单时从 product 复制),回调带回业务方按码映射权益(设计 §5)
Subject string `gorm:"size:128"`
// 金额:int64 最小单位 + 币种(presentment/charge/settlement 三态在 charge 落地此处)
AmountMinor int64 `gorm:"not null"`
@@ -74,7 +75,7 @@ type Attempt struct {
AmountMinor int64 `gorm:"not null"`
Currency string `gorm:"size:16;not null"`
Status AttemptStatus `gorm:"index;size:16;not null"`
ExpiresAt *time.Time // 本次尝试超时
ExpiresAt *time.Time // 本次尝试超时
PaidAt *time.Time
}