部署
This commit is contained in:
parent
d19900584b
commit
6210802493
@ -271,3 +271,34 @@ func (s *shipment) Edit(ctx context.Context, args ArgsShipmentEdit) (err error)
|
|||||||
err = xClient.Call(ctx, "Edit", args, &reply)
|
err = xClient.Call(ctx, "Edit", args, &reply)
|
||||||
return
|
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
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user