添加字段

This commit is contained in:
守护自己的云 2025-02-24 13:52:11 +08:00
parent 6d30f094b7
commit 9ce98e004e

View File

@ -133,3 +133,23 @@ func (c *customs) Customs(ctx context.Context, customsId int64) (reply bean2.Rep
err = xClient.Call(ctx, "Customs", customsId, &reply)
return
}
type ArgsCustomsEdit struct {
CustomsId int64 // 报关单id
ArgsCustomsData
}
type ArgsCustomsData struct {
InvoiceDate *time.Time // 发票日期
ContractDate *time.Time // 合同日期
}
// Edit @TITLE 编辑
func (c *customs) Edit(ctx context.Context, args ArgsCustomsEdit) (err error) {
xClient, err := client.GetClient(c)
if err != nil {
return
}
reply := 0
err = xClient.Call(ctx, "Edit", args, &reply)
return
}