feat(shipment): 添加订舱单费用编辑功能

- 新增 ArgsShipmentEditCost 结构体定义费用字段
- 实现 EditCost 方法用于编辑国内运费、国外运费和佣金
- 集成客户端调用逻辑处理费用更新请求
This commit is contained in:
2026-01-15 11:39:50 +08:00
parent 361c61cbe7
commit be1ba847f5

View File

@@ -233,6 +233,24 @@ func (s *shipment) Edit(ctx context.Context, args ArgsShipmentEdit) (err error)
return
}
type ArgsShipmentEditCost struct {
ShipmentId int64 // 订舱单id
DomesticShippingCost decimal.Decimal // 国内运费
ForeignShippingCost decimal.Decimal // 国外运费
ForeignCommission decimal.Decimal // 国外佣金
}
// EditCost @TITLE 编辑费用
func (s *shipment) EditCost(ctx context.Context, args ArgsShipmentEditCost) (err error) {
xClient, err := client.GetClient(s)
if err != nil {
return
}
reply := 0
err = xClient.Call(ctx, "EditCost", args, &reply)
return
}
// Customs @TITLE 报关信息
func (s *shipment) Customs(ctx context.Context, shipmentId int64) (reply bean2.ReplyCustoms, err error) {
xClient, err := client.GetClient(s)