问题修复

This commit is contained in:
2024-10-23 11:56:33 +08:00
parent b3676f6b2f
commit 206ed11cec
7 changed files with 37 additions and 17 deletions

View File

@@ -29,6 +29,7 @@ type ShipmentSearch struct {
InvoiceDateEnd *time.Time // 发票日期
ContractDateStart *time.Time // 合同日期
ContractDateEnd *time.Time // 合同日期
BanFlag int64 // 是否有效
}
type ReplyShipmentList struct {
List []ShipmentItem `json:"list"`
@@ -229,3 +230,14 @@ func (s *shipment) Customs(ctx context.Context, shipmentId int64) (reply bean2.R
err = xClient.Call(ctx, "Customs", shipmentId, &reply)
return
}
// Cancel @TITLE 作废
func (s *shipment) Cancel(ctx context.Context, shipmentId int64) (err error) {
xClient, err := client.GetClient(s)
if err != nil {
return
}
reply := 0
err = xClient.Call(ctx, "Cancel", shipmentId, &reply)
return
}