feat(shipment): 添加箱体重量字段支持
- 在 BoxItem 结构体中添加 GrossWeight、TotalGrossWeight、NetWeight 和 TotalNetWeight 字段 - 在 BoxAdd 结构体中添加 GrossWeight、TotalGrossWeight、NetWeight 和 TotalNetWeight 字段 - 更新结构体字段对齐格式以提高代码可读性 - 支持箱体毛重和净重相关业务功能
This commit is contained in:
@@ -23,6 +23,10 @@ type BoxItem struct {
|
||||
Height decimal.Decimal `json:"height"`
|
||||
Volume decimal.Decimal `json:"volume"`
|
||||
TotalVolume decimal.Decimal `json:"totalVolume"`
|
||||
GrossWeight decimal.Decimal `json:"grossWeight"`
|
||||
TotalGrossWeight decimal.Decimal `json:"totalGrossWeight"`
|
||||
NetWeight decimal.Decimal `json:"netWeight"`
|
||||
TotalNetWeight decimal.Decimal `json:"totalNetWeight"`
|
||||
OuterNum int64 `json:"outerNum"`
|
||||
Products []BoxProduct `json:"products"`
|
||||
}
|
||||
@@ -67,6 +71,10 @@ type BoxAdd struct {
|
||||
Height decimal.Decimal // 高
|
||||
Volume decimal.Decimal // 体积
|
||||
TotalVolume decimal.Decimal // 总体积
|
||||
GrossWeight decimal.Decimal // 毛重
|
||||
TotalGrossWeight decimal.Decimal // 总毛重
|
||||
NetWeight decimal.Decimal // 净重
|
||||
TotalNetWeight decimal.Decimal // 总净重
|
||||
OuterNum int64 // 外箱入数
|
||||
Products []BoxProductItem // 箱内商品
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user