diff --git a/ik3cloud/custom.go b/ik3cloud/custom.go index 89b0ac0..977eaf5 100644 --- a/ik3cloud/custom.go +++ b/ik3cloud/custom.go @@ -18,9 +18,10 @@ type ArgsCustomSave struct { Website string // 网站 Tel string // 电话 Fax string // 传真 + Contacts []CustomItem } -type FactoryCustomItem struct { +type CustomItem struct { ContactNumber string // 联系人编号 Name string // 部门名称 Sex string // 性别 diff --git a/ik3cloud/product.go b/ik3cloud/product.go index effd1a8..27353c4 100644 --- a/ik3cloud/product.go +++ b/ik3cloud/product.go @@ -8,18 +8,18 @@ import ( type product struct { } -type ArgsProductSave struct { +type ProductSaveItem struct { ProductId int64 // 付款单id Number string // 编码 Name string // 名称 } // Save @TITLE 保存客户 -func (p *product) Save(ctx context.Context, args ArgsProductSave) (entity Entity, err error) { +func (p *product) Save(ctx context.Context, args []ProductSaveItem) (entities []Entity, err error) { xClient, err := client.GetClient(p) if err != nil { return } - err = xClient.Call(ctx, "Save", args, &entity) + err = xClient.Call(ctx, "Save", args, &entities) return }