feat: 订单自动过期-查看时检查并取消超时订单,收银台倒计时结束自动取消

This commit is contained in:
2026-05-28 02:17:47 +08:00
parent 23badb4526
commit 38b03878e8
4 changed files with 74 additions and 8 deletions
+1
View File
@@ -25,6 +25,7 @@ type Order struct {
ExpressPhoto string `gorm:"type:text" json:"express_photo"`
CustomsPhoto string `gorm:"type:text" json:"customs_photo"`
PaymentMethod string `gorm:"size:50" json:"payment_method"`
PaymentExpiresAt *time.Time `json:"payment_expires_at,omitempty"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`