feat: update order model with packaging_fee and international_fee, remove tax
Build and Push Docker Image / build-and-push (push) Successful in 1m6s
Build and Push Docker Image / deploy (push) Successful in 8s

This commit is contained in:
nuyue
2026-07-16 18:17:29 +08:00
parent 74420e687b
commit 13768f5f5b
4 changed files with 25 additions and 14 deletions
+3 -2
View File
@@ -13,8 +13,9 @@ type Order struct {
Subtotal float64 `gorm:"type:decimal(10,2);not null" json:"subtotal"`
ShippingFee float64 `gorm:"type:decimal(10,2);default:0" json:"shipping_fee"`
ServiceFee float64 `gorm:"type:decimal(10,2);default:0" json:"service_fee"`
Tax float64 `gorm:"type:decimal(10,2);default:0" json:"tax"`
ChannelFee float64 `gorm:"type:decimal(10,2);default:0" json:"channel_fee"` // 支付通道费
ChannelFee float64 `gorm:"type:decimal(10,2);default:0" json:"channel_fee"`
PackagingFee float64 `gorm:"type:decimal(10,2);default:0" json:"packaging_fee"`
InternationalFee float64 `gorm:"type:decimal(10,2);default:0" json:"international_fee"`
TotalAmount float64 `gorm:"type:decimal(10,2);not null" json:"total_amount"`
RefundAmount *float64 `gorm:"type:decimal(10,2)" json:"refund_amount"`
RefundStatus string `gorm:"size:20" json:"refund_status"`