feat(product): 新增产品装箱数量字段

- 在销售产品结构体中添加 BoxAmount 字段
- 使用 decimal.Decimal 类型支持精确数值计算
- 字段对应 JSON 键名为 boxAmount
This commit is contained in:
2026-10-28 10:24:28 +08:00
parent c66dd7f963
commit e2d77a5d3f

View File

@@ -280,6 +280,7 @@ type ReplyProductInfo struct {
PurchasedCount int64 `json:"purchasedCount"` PurchasedCount int64 `json:"purchasedCount"`
ShipmentCount int64 `json:"shipmentCount"` ShipmentCount int64 `json:"shipmentCount"`
ShippedCount int64 `json:"shippedCount"` ShippedCount int64 `json:"shippedCount"`
BoxAmount decimal.Decimal `json:"boxAmount"`
AccountingCount int64 `json:"accountingCount"` AccountingCount int64 `json:"accountingCount"`
AccountedCount int64 `json:"accountedCount"` AccountedCount int64 `json:"accountedCount"`
CreatedAt *time.Time `json:"createdAt"` CreatedAt *time.Time `json:"createdAt"`