问题修复
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user