feat(v2): Order/Attempt/Account/Refund 模型 + 状态枚举 + :memory: 测试约定

v2 OrderStatus 三个值(Pending/Paid/Refunded)与 v1 model.OrderStatus 撞名,
统一加 V2 后缀(OrderPendingV2 等)规避包内重名;AttemptStatus/RefundStatus
无此冲突,原样保留。
This commit is contained in:
wangjia
2026-07-10 08:14:27 +08:00
parent 7da15c00a1
commit 01887dd571
4 changed files with 172 additions and 0 deletions
+1
View File
@@ -80,6 +80,7 @@ func autoMigrate(db *gorm.DB) {
&model.Order{},
&model.NotifyLog{},
&model.BizNotifyLog{},
&model.OrderV2{}, &model.Attempt{}, &model.Account{}, &model.Refund{}, // v2
); err != nil {
log.Fatalf("自动迁移失败: %v", err)
}