feat(model): 添加代购和强充配置字段

This commit is contained in:
2026-01-31 11:31:57 +08:00
parent f6a0f0f39c
commit 116355835a
2 changed files with 7 additions and 0 deletions

View File

@@ -39,6 +39,9 @@ type Order struct {
SellerShopID *uint `gorm:"column:seller_shop_id;index;comment:销售店铺ID用于成本价差佣金计算" json:"seller_shop_id,omitempty"`
SellerCostPrice int64 `gorm:"column:seller_cost_price;type:bigint;default:0;comment:销售成本价(分,用于计算利润)" json:"seller_cost_price"`
SeriesID *uint `gorm:"column:series_id;index;comment:系列ID用于查询分配配置" json:"series_id,omitempty"`
// 代购信息
IsPurchaseOnBehalf bool `gorm:"column:is_purchase_on_behalf;type:boolean;default:false;comment:是否为代购订单" json:"is_purchase_on_behalf"`
}
// TableName 指定表名