This commit is contained in:
守护自己的云 2024-09-23 16:04:00 +08:00
parent d19900584b
commit 6210802493

View File

@ -271,3 +271,34 @@ func (s *shipment) Edit(ctx context.Context, args ArgsShipmentEdit) (err error)
err = xClient.Call(ctx, "Edit", args, &reply)
return
}
type ReplyCustoms struct {
CostAmount decimal.Decimal `json:"costAmount"`
CustomsCostAmount decimal.Decimal `json:"customsCostAmount"`
SaleTotalAmount decimal.Decimal `json:"saleTotalAmount"`
Products []CustomsProductItem `json:"products"`
}
type CustomsProductItem struct {
Index int `json:"index"`
Serial string `json:"serial"`
CustomsName string `json:"customsName"`
ShipmentCount int64 `json:"shipmentCount"`
SalePrice decimal.Decimal `json:"salePrice"`
SaleAmount decimal.Decimal `json:"saleAmount"`
CustomsPrice decimal.Decimal `json:"customsPrice"`
CustomsAmount decimal.Decimal `json:"customsAmount"`
AdjustAmount decimal.Decimal `json:"adjustAmount"`
RealCustomsPrice decimal.Decimal `json:"realCustomsPrice"`
RealCustomsAmount decimal.Decimal `json:"realCustomsAmount"`
}
// Customs @TITLE 报关信息
func (s *shipment) Customs(ctx context.Context, shipmentId int64) (reply ReplyCustoms, err error) {
xClient, err := client.GetClient(s)
if err != nil {
return
}
err = xClient.Call(ctx, "Customs", shipmentId, &reply)
return
}