feat(shipment): 添加箱体重量字段支持
- 在 BoxItem 结构体中添加 GrossWeight、TotalGrossWeight、NetWeight 和 TotalNetWeight 字段 - 在 BoxAdd 结构体中添加 GrossWeight、TotalGrossWeight、NetWeight 和 TotalNetWeight 字段 - 更新结构体字段对齐格式以提高代码可读性 - 支持箱体毛重和净重相关业务功能
This commit is contained in:
@@ -11,20 +11,24 @@ type box struct {
|
||||
}
|
||||
|
||||
type BoxItem struct {
|
||||
Id int64 `json:"id"`
|
||||
Serial string `json:"serial"`
|
||||
CustomSerial string `json:"customSerial"`
|
||||
Po string `json:"po"`
|
||||
BlEngName string `json:"blEngName"`
|
||||
InnerNum int64 `json:"innerNum"`
|
||||
OuterBoxCount int64 `json:"outerBoxCount"`
|
||||
Length decimal.Decimal `json:"length"`
|
||||
Width decimal.Decimal `json:"width"`
|
||||
Height decimal.Decimal `json:"height"`
|
||||
Volume decimal.Decimal `json:"volume"`
|
||||
TotalVolume decimal.Decimal `json:"totalVolume"`
|
||||
OuterNum int64 `json:"outerNum"`
|
||||
Products []BoxProduct `json:"products"`
|
||||
Id int64 `json:"id"`
|
||||
Serial string `json:"serial"`
|
||||
CustomSerial string `json:"customSerial"`
|
||||
Po string `json:"po"`
|
||||
BlEngName string `json:"blEngName"`
|
||||
InnerNum int64 `json:"innerNum"`
|
||||
OuterBoxCount int64 `json:"outerBoxCount"`
|
||||
Length decimal.Decimal `json:"length"`
|
||||
Width decimal.Decimal `json:"width"`
|
||||
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"`
|
||||
}
|
||||
|
||||
type BoxProduct struct {
|
||||
@@ -56,19 +60,23 @@ type ArgsBoxAdd struct {
|
||||
}
|
||||
|
||||
type BoxAdd struct {
|
||||
Serial string // 货号
|
||||
CustomSerial string // 客户货号
|
||||
Po string // PO
|
||||
BlEngName string // 提单英文名
|
||||
InnerNum int64 // 内盒入数
|
||||
OuterBoxCount int64 // 箱数
|
||||
Length decimal.Decimal // 长
|
||||
Width decimal.Decimal // 宽
|
||||
Height decimal.Decimal // 高
|
||||
Volume decimal.Decimal // 体积
|
||||
TotalVolume decimal.Decimal // 总体积
|
||||
OuterNum int64 // 外箱入数
|
||||
Products []BoxProductItem // 箱内商品
|
||||
Serial string // 货号
|
||||
CustomSerial string // 客户货号
|
||||
Po string // PO
|
||||
BlEngName string // 提单英文名
|
||||
InnerNum int64 // 内盒入数
|
||||
OuterBoxCount int64 // 箱数
|
||||
Length decimal.Decimal // 长
|
||||
Width decimal.Decimal // 宽
|
||||
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 // 箱内商品
|
||||
}
|
||||
|
||||
type BoxProductItem struct {
|
||||
|
||||
Reference in New Issue
Block a user